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.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.HasResult
. MinecraftForge.EVENT_BUS
.EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Event.HasResult, Event.Result
コンストラクタと説明 |
---|
RenderNameplateEvent(Entity entity,
java.lang.String content,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
IRenderTypeBuffer renderTypeBuffer) |
修飾子とタイプ | メソッドと説明 |
---|---|
java.lang.String |
getContent()
The content being rendered on the name plate/tag
|
com.mojang.blaze3d.matrix.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
|
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
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public RenderNameplateEvent(Entity entity, java.lang.String content, com.mojang.blaze3d.matrix.MatrixStack matrixStack, IRenderTypeBuffer renderTypeBuffer)
public void setContent(java.lang.String contents)
public java.lang.String getContent()
public java.lang.String getOriginalContent()
public com.mojang.blaze3d.matrix.MatrixStack getMatrixStack()
public IRenderTypeBuffer getRenderTypeBuffer()