Class LivingRenderer<T extends LivingEntity,M extends EntityModel<T>>

java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingRenderer<T,M>
All Implemented Interfaces:
IEntityRenderer<T,M>
Direct Known Subclasses:
ArmorStandRenderer, MobRenderer, PlayerRenderer

public abstract class LivingRenderer<T extends LivingEntity,M extends EntityModel<T>> extends EntityRenderer<T> implements IEntityRenderer<T,M>
  • Field Details

  • Constructor Details

    • LivingRenderer

      public LivingRenderer(EntityRendererManager p_i50965_1_, M p_i50965_2_, float p_i50965_3_)
  • Method Details

    • addLayer

      public final boolean addLayer(LayerRenderer<T,M> p_177094_1_)
    • getModel

      public M getModel()
      Specified by:
      getModel in interface IEntityRenderer<T extends LivingEntity,M extends EntityModel<T>>
    • render

      public void render(T p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_)
      Overrides:
      render in class EntityRenderer<T extends LivingEntity>
    • getRenderType

      @Nullable protected RenderType getRenderType(T p_230496_1_, boolean p_230496_2_, boolean p_230496_3_, boolean p_230496_4_)
    • getOverlayCoords

      public static int getOverlayCoords(LivingEntity p_229117_0_, float p_229117_1_)
    • isBodyVisible

      protected boolean isBodyVisible(T p_225622_1_)
    • sleepDirectionToRotation

      private static float sleepDirectionToRotation(Direction p_217765_0_)
    • isShaking

      protected boolean isShaking(T p_230495_1_)
    • setupRotations

      protected void setupRotations(T p_225621_1_, MatrixStack p_225621_2_, float p_225621_3_, float p_225621_4_, float p_225621_5_)
    • getAttackAnim

      protected float getAttackAnim(T p_77040_1_, float p_77040_2_)
    • getBob

      protected float getBob(T p_77044_1_, float p_77044_2_)
    • getFlipDegrees

      protected float getFlipDegrees(T p_77037_1_)
    • getWhiteOverlayProgress

      protected float getWhiteOverlayProgress(T p_225625_1_, float p_225625_2_)
    • scale

      protected void scale(T p_225620_1_, MatrixStack p_225620_2_, float p_225620_3_)
    • shouldShowName

      protected boolean shouldShowName(T p_177070_1_)
      Overrides:
      shouldShowName in class EntityRenderer<T extends LivingEntity>