java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M>
net.minecraft.client.renderer.entity.MobRenderer<NPC,net.minecraft.client.model.EntityModel<NPC>>
com.pixelmonmod.pixelmon.client.render.entity.renderers.NPCEntityRenderer
All Implemented Interfaces:
net.minecraft.client.renderer.entity.RenderLayerParent<NPC,net.minecraft.client.model.EntityModel<NPC>>

public class NPCEntityRenderer extends net.minecraft.client.renderer.entity.MobRenderer<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

    Constructors
    Constructor
    Description
    NPCEntityRenderer(net.minecraft.client.renderer.entity.EntityRendererProvider.Context p_174008_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.ResourceLocation
     
    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
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
      Overrides:
      render in class net.minecraft.client.renderer.entity.MobRenderer<NPC,net.minecraft.client.model.EntityModel<NPC>>
    • 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

      protected boolean shouldShowName(NPC npc)
      Overrides:
      shouldShowName in class net.minecraft.client.renderer.entity.MobRenderer<NPC,net.minecraft.client.model.EntityModel<NPC>>
    • getTextureLocation

      public net.minecraft.resources.ResourceLocation getTextureLocation(NPC p_114482_)
      Specified by:
      getTextureLocation in interface net.minecraft.client.renderer.entity.RenderLayerParent<NPC,net.minecraft.client.model.EntityModel<NPC>>
      Specified by:
      getTextureLocation in class net.minecraft.client.renderer.entity.EntityRenderer<NPC>