Class NPCRenderer
- All Implemented Interfaces:
net.minecraft.client.renderer.entity.RenderLayerParent<NPCEntity,
net.minecraft.client.model.PlayerModel<NPCEntity>>
public class NPCRenderer
extends net.minecraft.client.renderer.entity.LivingEntityRenderer<NPCEntity,net.minecraft.client.model.PlayerModel<NPCEntity>>
Renders Pixelmon NPCs.
-
Field Summary
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
ConstructorDescriptionNPCRenderer
(net.minecraft.client.renderer.entity.EntityRendererProvider.Context manager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawNameTag
(NPCEntity npc, float entityYaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int packedLight) net.minecraft.world.phys.Vec3
getRenderOffset
(NPCEntity entityIn, float partialTicks) net.minecraft.resources.ResourceLocation
getTextureLocation
(NPCEntity entity) void
render
(NPCEntity npc, float entityYaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int packedLight) void
renderLeftArm
(com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int combinedLight, NPCEntity npc) protected void
renderLivingLabel
(NPCEntity npc, String displayText, String subtitleText, float entityYaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int packedLight) void
renderRightArm
(com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int combinedLight, NPCEntity npc) protected void
protected void
setupRotations
(NPCEntity entityLiving, com.mojang.blaze3d.vertex.PoseStack PoseStackIn, float ageInTicks, float rotationYaw, float partialTicks) protected boolean
shouldShowName
(NPCEntity npc) Methods inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getWhiteOverlayProgress, isBodyVisible, isEntityUpsideDown, isShaking
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getSkyLightLevel, renderNameTag, shouldRender
-
Constructor Details
-
NPCRenderer
public NPCRenderer(net.minecraft.client.renderer.entity.EntityRendererProvider.Context manager)
-
-
Method Details
-
render
public void render(NPCEntity npc, float entityYaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int packedLight) -
getRenderOffset
- Overrides:
getRenderOffset
in classnet.minecraft.client.renderer.entity.EntityRenderer<NPCEntity>
-
shouldShowName
-
drawNameTag
public void drawNameTag(NPCEntity npc, float entityYaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int packedLight) -
renderLivingLabel
-
getTextureLocation
-
scale
protected void scale(NPCEntity npc, com.mojang.blaze3d.vertex.PoseStack matrix, float partialTickTime) -
renderRightArm
public void renderRightArm(com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int combinedLight, NPCEntity npc) -
renderLeftArm
public void renderLeftArm(com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource buffer, int combinedLight, NPCEntity npc) -
setupRotations
protected void setupRotations(NPCEntity entityLiving, com.mojang.blaze3d.vertex.PoseStack PoseStackIn, float ageInTicks, float rotationYaw, float partialTicks)
-