public class RenderNameplateEvent extends EntityEvent
nameplateContent
contains the content being rendered on the name plate/tag. This can be changed by mods.originalContent
contains the original content being rendered on the name plate/tag. This cannot be
changed by mods.entityRenderer
contains the entity renderer instance that renders the name plate/tag. This cannot be
changed by mods.matrixStack
contains the matrix stack instance involved in rendering the name plate/tag. This cannot
be changed by mods.renderTypeBuffer
contains the render type buffer instance involved in rendering the name plate/tag.
This cannot be changed by mods.packedLight
contains the sky and block light values used in rendering the name plate/tag.HasResult
. MinecraftForge.EVENT_BUS
.EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private EntityRenderer<?> |
entityRenderer |
private MatrixStack |
matrixStack |
private java.lang.String |
nameplateContent |
private java.lang.String |
originalContent |
private int |
packedLight |
private IRenderTypeBuffer |
renderTypeBuffer |
Constructor and Description |
---|
RenderNameplateEvent(Entity entity,
java.lang.String content,
EntityRenderer<?> entityRenderer,
MatrixStack matrixStack,
IRenderTypeBuffer renderTypeBuffer,
int packedLight) |
RenderNameplateEvent(Entity entity,
java.lang.String content,
MatrixStack matrixStack,
IRenderTypeBuffer renderTypeBuffer)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
The content being rendered on the name plate/tag
|
EntityRenderer<?> |
getEntityRenderer()
The entity renderer that renders the name plate/tag, if it was provided
|
MatrixStack |
getMatrixStack()
The matrix stack used during the rendering of the name plate/tag
|
java.lang.String |
getOriginalContent()
The original content being rendered on the name plate/tag
|
int |
getPackedLight()
The packed values of sky and block light used during the rendering of the name plate/tag
|
IRenderTypeBuffer |
getRenderTypeBuffer()
The render type buffer used during the rendering of the name plate/tag
|
void |
setContent(java.lang.String contents)
Sets the content that is to be rendered on the name plate/tag
|
getEntity
private java.lang.String nameplateContent
private final java.lang.String originalContent
private final EntityRenderer<?> entityRenderer
private final MatrixStack matrixStack
private final IRenderTypeBuffer renderTypeBuffer
private final int packedLight
@Deprecated public RenderNameplateEvent(Entity entity, java.lang.String content, MatrixStack matrixStack, IRenderTypeBuffer renderTypeBuffer)
public RenderNameplateEvent(Entity entity, java.lang.String content, EntityRenderer<?> entityRenderer, MatrixStack matrixStack, IRenderTypeBuffer renderTypeBuffer, int packedLight)
public void setContent(java.lang.String contents)
public java.lang.String getContent()
public java.lang.String getOriginalContent()
@Nullable public EntityRenderer<?> getEntityRenderer()
public MatrixStack getMatrixStack()
public IRenderTypeBuffer getRenderTypeBuffer()
public int getPackedLight()