java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingEntityRenderer<NPCEntity,net.minecraft.client.model.PlayerModel<NPCEntity>>
com.pixelmonmod.pixelmon.client.render.entity.renderers.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

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

    Modifier and Type
    Method
    Description
    void
    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
     
    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
    scale(NPCEntity npc, com.mojang.blaze3d.vertex.PoseStack matrix, float partialTickTime)
     
    protected void
    setupRotations(NPCEntity entityLiving, com.mojang.blaze3d.vertex.PoseStack PoseStackIn, float ageInTicks, float rotationYaw, float partialTicks)
     
    protected boolean
     

    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

    Methods inherited from class java.lang.Object

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

      public net.minecraft.world.phys.Vec3 getRenderOffset(NPCEntity entityIn, float partialTicks)
      Overrides:
      getRenderOffset in class net.minecraft.client.renderer.entity.EntityRenderer<NPCEntity>
    • shouldShowName

      protected boolean shouldShowName(NPCEntity npc)
      Overrides:
      shouldShowName in class net.minecraft.client.renderer.entity.LivingEntityRenderer<NPCEntity,net.minecraft.client.model.PlayerModel<NPCEntity>>
    • 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

      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)
    • getTextureLocation

      public net.minecraft.resources.ResourceLocation getTextureLocation(NPCEntity entity)
      Specified by:
      getTextureLocation in interface net.minecraft.client.renderer.entity.RenderLayerParent<NPCEntity,net.minecraft.client.model.PlayerModel<NPCEntity>>
      Specified by:
      getTextureLocation in class net.minecraft.client.renderer.entity.EntityRenderer<NPCEntity>
    • scale

      protected void scale(NPCEntity npc, com.mojang.blaze3d.vertex.PoseStack matrix, float partialTickTime)
      Overrides:
      scale in class net.minecraft.client.renderer.entity.LivingEntityRenderer<NPCEntity,net.minecraft.client.model.PlayerModel<NPCEntity>>
    • 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)
      Overrides:
      setupRotations in class net.minecraft.client.renderer.entity.LivingEntityRenderer<NPCEntity,net.minecraft.client.model.PlayerModel<NPCEntity>>