Class MinecartRenderer<T extends AbstractMinecartEntity>
- java.lang.Object
-
- net.minecraft.client.renderer.entity.EntityRenderer<T>
-
- net.minecraft.client.renderer.entity.MinecartRenderer<T>
-
- Direct Known Subclasses:
TNTMinecartRenderer
public class MinecartRenderer<T extends AbstractMinecartEntity> extends EntityRenderer<T>
-
-
Field Summary
Fields Modifier and Type Field Description private static ResourceLocation
MINECART_LOCATION
protected EntityModel<T>
model
-
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, shadowRadius, shadowStrength
-
-
Constructor Summary
Constructors Constructor Description MinecartRenderer(EntityRendererManager p_i46155_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocation
getTextureLocation(T p_110775_1_)
void
render(T 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
renderMinecartContents(T p_225630_1_, float p_225630_2_, BlockState p_225630_3_, MatrixStack p_225630_4_, IRenderTypeBuffer p_225630_5_, int p_225630_6_)
-
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getDispatcher, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, renderNameTag, shouldRender, shouldShowName
-
-
-
-
Field Detail
-
MINECART_LOCATION
private static final ResourceLocation MINECART_LOCATION
-
model
protected final EntityModel<T extends AbstractMinecartEntity> model
-
-
Constructor Detail
-
MinecartRenderer
public MinecartRenderer(EntityRendererManager p_i46155_1_)
-
-
Method Detail
-
render
public void render(T 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<T extends AbstractMinecartEntity>
-
getTextureLocation
public ResourceLocation getTextureLocation(T p_110775_1_)
- Specified by:
getTextureLocation
in classEntityRenderer<T extends AbstractMinecartEntity>
-
renderMinecartContents
protected void renderMinecartContents(T p_225630_1_, float p_225630_2_, BlockState p_225630_3_, MatrixStack p_225630_4_, IRenderTypeBuffer p_225630_5_, int p_225630_6_)
-
-