Class PaintingRenderer
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<Painting>
net.minecraft.client.renderer.entity.PaintingRenderer
-
Field Summary
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, LEASH_RENDER_STEPS, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTextureLocation
(Painting pEntity) Returns the location of an entity's texture.void
render
(Painting pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) private void
renderPainting
(PoseStack pPoseStack, VertexConsumer pConsumer, Painting pPainting, int pWidth, int pHeight, TextureAtlasSprite pPaintingSprite, TextureAtlasSprite pBackSprite) private void
vertex
(PoseStack.Pose pPose, VertexConsumer pConsumer, float pX, float pY, float pU, float pV, float pZ, int pNormalX, int pNormalY, int pNormalZ, int pPackedLight) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getShadowRadius, getSkyLightLevel, renderNameTag, shouldRender, shouldShowName
-
Constructor Details
-
PaintingRenderer
-
-
Method Details
-
render
public void render(Painting pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) - Overrides:
render
in classEntityRenderer<Painting>
-
getTextureLocation
Returns the location of an entity's texture.- Specified by:
getTextureLocation
in classEntityRenderer<Painting>
-
renderPainting
private void renderPainting(PoseStack pPoseStack, VertexConsumer pConsumer, Painting pPainting, int pWidth, int pHeight, TextureAtlasSprite pPaintingSprite, TextureAtlasSprite pBackSprite) -
vertex
private void vertex(PoseStack.Pose pPose, VertexConsumer pConsumer, float pX, float pY, float pU, float pV, float pZ, int pNormalX, int pNormalY, int pNormalZ, int pPackedLight)
-