Class ItemFrameRenderer
- java.lang.Object
-
- net.minecraft.client.renderer.entity.EntityRenderer<ItemFrameEntity>
-
- net.minecraft.client.renderer.entity.ItemFrameRenderer
-
public class ItemFrameRenderer extends EntityRenderer<ItemFrameEntity>
-
-
Field Summary
Fields Modifier and Type Field Description private static ModelResourceLocation
FRAME_LOCATION
private ItemRenderer
itemRenderer
private static ModelResourceLocation
MAP_FRAME_LOCATION
private Minecraft
minecraft
-
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, shadowRadius, shadowStrength
-
-
Constructor Summary
Constructors Constructor Description ItemFrameRenderer(EntityRendererManager p_i46166_1_, ItemRenderer p_i46166_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3d
getRenderOffset(ItemFrameEntity p_225627_1_, float p_225627_2_)
ResourceLocation
getTextureLocation(ItemFrameEntity p_110775_1_)
void
render(ItemFrameEntity p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_)
protected void
renderNameTag(ItemFrameEntity p_225629_1_, ITextComponent p_225629_2_, MatrixStack p_225629_3_, IRenderTypeBuffer p_225629_4_, int p_225629_5_)
protected boolean
shouldShowName(ItemFrameEntity p_177070_1_)
-
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getDispatcher, getFont, getPackedLightCoords, getSkyLightLevel, shouldRender
-
-
-
-
Field Detail
-
FRAME_LOCATION
private static final ModelResourceLocation FRAME_LOCATION
-
MAP_FRAME_LOCATION
private static final ModelResourceLocation MAP_FRAME_LOCATION
-
minecraft
private final Minecraft minecraft
-
itemRenderer
private final ItemRenderer itemRenderer
-
-
Constructor Detail
-
ItemFrameRenderer
public ItemFrameRenderer(EntityRendererManager p_i46166_1_, ItemRenderer p_i46166_2_)
-
-
Method Detail
-
render
public void render(ItemFrameEntity p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_)
- Overrides:
render
in classEntityRenderer<ItemFrameEntity>
-
getRenderOffset
public Vector3d getRenderOffset(ItemFrameEntity p_225627_1_, float p_225627_2_)
- Overrides:
getRenderOffset
in classEntityRenderer<ItemFrameEntity>
-
getTextureLocation
public ResourceLocation getTextureLocation(ItemFrameEntity p_110775_1_)
- Specified by:
getTextureLocation
in classEntityRenderer<ItemFrameEntity>
-
shouldShowName
protected boolean shouldShowName(ItemFrameEntity p_177070_1_)
- Overrides:
shouldShowName
in classEntityRenderer<ItemFrameEntity>
-
renderNameTag
protected void renderNameTag(ItemFrameEntity p_225629_1_, ITextComponent p_225629_2_, MatrixStack p_225629_3_, IRenderTypeBuffer p_225629_4_, int p_225629_5_)
- Overrides:
renderNameTag
in classEntityRenderer<ItemFrameEntity>
-
-