Class NPCEntityRenderer
- All Implemented Interfaces:
net.minecraft.client.renderer.entity.RenderLayerParent<NPC,
net.minecraft.client.model.EntityModel<NPC>>
-
Field Summary
Fields inherited from class net.minecraft.client.renderer.entity.MobRenderer
LEASH_RENDER_STEPS
Fields inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
layers, model
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
ConstructorDescriptionNPCEntityRenderer
(net.minecraft.client.renderer.entity.EntityRendererProvider.Context p_174008_) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocation
getTextureLocation
(NPC p_114482_) void
render
(NPC npc, float yaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight) protected void
renderIcon
(NPC npc, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, net.minecraft.network.chat.Component name) protected boolean
shouldShowName
(NPC npc) Methods inherited from class net.minecraft.client.renderer.entity.MobRenderer
renderLeash, shouldRender
Methods inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getWhiteOverlayProgress, isBodyVisible, isEntityUpsideDown, isShaking, scale, setupRotations
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, renderNameTag
-
Constructor Details
-
NPCEntityRenderer
public NPCEntityRenderer(net.minecraft.client.renderer.entity.EntityRendererProvider.Context p_174008_)
-
-
Method Details
-
render
public void render(NPC npc, float yaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight) -
renderIcon
protected void renderIcon(NPC npc, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, net.minecraft.network.chat.Component name) -
shouldShowName
-
getTextureLocation
-