public class ItemFrameRenderer extends EntityRenderer<ItemFrameEntity>
Modifier and Type | Field and Description |
---|---|
private ItemRenderer |
itemRenderer |
private static ModelResourceLocation |
LOCATION_MODEL |
private static ModelResourceLocation |
LOCATION_MODEL_MAP |
private Minecraft |
mc |
renderManager, shadowOpaque, shadowSize
Constructor and Description |
---|
ItemFrameRenderer(EntityRendererManager renderManagerIn,
ItemRenderer itemRendererIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canRenderName(ItemFrameEntity entity) |
ResourceLocation |
getEntityTexture(ItemFrameEntity entity) |
Vec3d |
getRenderOffset(ItemFrameEntity entityIn,
float partialTicks) |
void |
render(ItemFrameEntity entityIn,
float entityYaw,
float partialTicks,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn) |
protected void |
renderName(ItemFrameEntity entityIn,
java.lang.String displayNameIn,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn) |
getBlockLight, getFontRendererFromRenderManager, getPackedLight, getRenderManager, shouldRender
private static final ModelResourceLocation LOCATION_MODEL
private static final ModelResourceLocation LOCATION_MODEL_MAP
private final Minecraft mc
private final ItemRenderer itemRenderer
public ItemFrameRenderer(EntityRendererManager renderManagerIn, ItemRenderer itemRendererIn)
public void render(ItemFrameEntity entityIn, float entityYaw, float partialTicks, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn)
render
in class EntityRenderer<ItemFrameEntity>
public Vec3d getRenderOffset(ItemFrameEntity entityIn, float partialTicks)
getRenderOffset
in class EntityRenderer<ItemFrameEntity>
public ResourceLocation getEntityTexture(ItemFrameEntity entity)
getEntityTexture
in class EntityRenderer<ItemFrameEntity>
protected boolean canRenderName(ItemFrameEntity entity)
canRenderName
in class EntityRenderer<ItemFrameEntity>
protected void renderName(ItemFrameEntity entityIn, java.lang.String displayNameIn, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn)
renderName
in class EntityRenderer<ItemFrameEntity>