public class NPCRenderer extends net.minecraft.client.renderer.entity.LivingRenderer<NPCEntity,net.minecraft.client.renderer.entity.model.PlayerModel<NPCEntity>>
Constructor and Description |
---|
NPCRenderer(net.minecraft.client.renderer.entity.EntityRendererManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
drawNameTag(NPCEntity npc,
float entityYaw,
float partialTicks,
com.mojang.blaze3d.matrix.MatrixStack matrix,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
int packedLight) |
net.minecraft.util.math.vector.Vector3d |
getRenderOffset(NPCEntity entityIn,
float partialTicks) |
net.minecraft.util.ResourceLocation |
getTextureLocation(NPCEntity entity) |
void |
render(NPCEntity npc,
float entityYaw,
float partialTicks,
com.mojang.blaze3d.matrix.MatrixStack matrix,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
int packedLight) |
void |
renderLeftArm(com.mojang.blaze3d.matrix.MatrixStack matrix,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
int combinedLight,
NPCEntity npc) |
protected void |
renderLivingLabel(NPCEntity npc,
java.lang.String displayText,
java.lang.String subtitleText,
float entityYaw,
float partialTicks,
com.mojang.blaze3d.matrix.MatrixStack matrix,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
int packedLight) |
void |
renderRightArm(com.mojang.blaze3d.matrix.MatrixStack matrix,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
int combinedLight,
NPCEntity npc) |
protected void |
scale(NPCEntity npc,
com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTickTime) |
protected void |
setupRotations(NPCEntity entityLiving,
com.mojang.blaze3d.matrix.MatrixStack matrixStackIn,
float ageInTicks,
float rotationYaw,
float partialTicks) |
protected boolean |
shouldShowName(NPCEntity npc) |
addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getWhiteOverlayProgress, isBodyVisible, isShaking
public NPCRenderer(net.minecraft.client.renderer.entity.EntityRendererManager manager)
public void render(NPCEntity npc, float entityYaw, float partialTicks, com.mojang.blaze3d.matrix.MatrixStack matrix, net.minecraft.client.renderer.IRenderTypeBuffer buffer, int packedLight)
public net.minecraft.util.math.vector.Vector3d getRenderOffset(NPCEntity entityIn, float partialTicks)
getRenderOffset
in class net.minecraft.client.renderer.entity.EntityRenderer<NPCEntity>
protected boolean shouldShowName(NPCEntity npc)
public void drawNameTag(NPCEntity npc, float entityYaw, float partialTicks, com.mojang.blaze3d.matrix.MatrixStack matrix, net.minecraft.client.renderer.IRenderTypeBuffer buffer, int packedLight)
protected void renderLivingLabel(NPCEntity npc, java.lang.String displayText, java.lang.String subtitleText, float entityYaw, float partialTicks, com.mojang.blaze3d.matrix.MatrixStack matrix, net.minecraft.client.renderer.IRenderTypeBuffer buffer, int packedLight)
public net.minecraft.util.ResourceLocation getTextureLocation(NPCEntity entity)
protected void scale(NPCEntity npc, com.mojang.blaze3d.matrix.MatrixStack matrix, float partialTickTime)
public void renderRightArm(com.mojang.blaze3d.matrix.MatrixStack matrix, net.minecraft.client.renderer.IRenderTypeBuffer buffer, int combinedLight, NPCEntity npc)
public void renderLeftArm(com.mojang.blaze3d.matrix.MatrixStack matrix, net.minecraft.client.renderer.IRenderTypeBuffer buffer, int combinedLight, NPCEntity npc)
protected void setupRotations(NPCEntity entityLiving, com.mojang.blaze3d.matrix.MatrixStack matrixStackIn, float ageInTicks, float rotationYaw, float partialTicks)