Class ItemFrameEntityRenderer
java.lang.Object
net.minecraft.client.render.entity.EntityRenderer<ItemFrameEntity>
net.minecraft.client.render.entity.ItemFrameEntityRenderer
@Environment(CLIENT) public class ItemFrameEntityRenderer extends EntityRenderer<ItemFrameEntity>
-
Field Summary
Fields Modifier and Type Field Description private MinecraftClient
client
private ItemRenderer
itemRenderer
private static ModelIdentifier
MAP_FRAME
private static ModelIdentifier
NORMAL_FRAME
Fields inherited from class net.minecraft.client.render.entity.EntityRenderer
dispatcher, shadowOpacity, shadowRadius
-
Constructor Summary
Constructors Constructor Description ItemFrameEntityRenderer(EntityRenderDispatcher dispatcher, ItemRenderer itemRenderer)
-
Method Summary
Modifier and Type Method Description Vec3d
getPositionOffset(ItemFrameEntity itemFrameEntity, float float2)
Identifier
getTexture(ItemFrameEntity itemFrameEntity)
protected boolean
hasLabel(ItemFrameEntity itemFrameEntity)
Determines whether the passed entity should render with a nameplate above its head.void
render(ItemFrameEntity itemFrameEntity, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)
protected void
renderLabelIfPresent(ItemFrameEntity itemFrameEntity, Text text, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)
Methods inherited from class net.minecraft.client.render.entity.EntityRenderer
getBlockLight, getFontRenderer, getLight, getRenderManager, method_27950, shouldRender
-
Field Details
-
NORMAL_FRAME
-
MAP_FRAME
-
client
-
itemRenderer
-
-
Constructor Details
-
ItemFrameEntityRenderer
-
-
Method Details
-
render
public void render(ItemFrameEntity itemFrameEntity, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)- Overrides:
render
in classEntityRenderer<ItemFrameEntity>
-
getPositionOffset
- Overrides:
getPositionOffset
in classEntityRenderer<ItemFrameEntity>
-
getTexture
- Specified by:
getTexture
in classEntityRenderer<ItemFrameEntity>
-
hasLabel
Description copied from class:EntityRenderer
Determines whether the passed entity should render with a nameplate above its head.Checks for a custom nametag on living entities, and for teams/team visibilities for players.
- Overrides:
hasLabel
in classEntityRenderer<ItemFrameEntity>
-
renderLabelIfPresent
protected void renderLabelIfPresent(ItemFrameEntity itemFrameEntity, Text text, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)- Overrides:
renderLabelIfPresent
in classEntityRenderer<ItemFrameEntity>
-