Class MinecartRenderer<T extends AbstractMinecart>
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.MinecartRenderer<T>
- Direct Known Subclasses:
TntMinecartRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockRenderDispatcherprivate static final ResourceLocationprotected final EntityModel<T> Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, LEASH_RENDER_STEPS, NAMETAG_SCALE, shadowRadius, shadowStrength -
Constructor Summary
ConstructorsConstructorDescriptionMinecartRenderer(EntityRendererProvider.Context pContext, ModelLayerLocation pLayer) -
Method Summary
Modifier and TypeMethodDescriptiongetTextureLocation(T pEntity) Returns the location of an entity's texture.voidrender(T pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) protected voidrenderMinecartContents(T pEntity, float pPartialTicks, BlockState pState, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getShadowRadius, getSkyLightLevel, renderNameTag, shouldRender, shouldShowName
-
Field Details
-
MINECART_LOCATION
-
model
-
blockRenderer
-
-
Constructor Details
-
MinecartRenderer
-
-
Method Details
-
render
public void render(T pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) - Overrides:
renderin classEntityRenderer<T extends AbstractMinecart>
-
getTextureLocation
Returns the location of an entity's texture.- Specified by:
getTextureLocationin classEntityRenderer<T extends AbstractMinecart>
-
renderMinecartContents
protected void renderMinecartContents(T pEntity, float pPartialTicks, BlockState pState, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight)
-