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

java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M>
All Implemented Interfaces:
RenderLayerParent<T,M>
Direct Known Subclasses:
ArmorStandRenderer, EntityRendererEventsTest.EntityRenderEventsTestClientModStuff.MyEntityRenderer, MobRenderer, PlayerRenderer

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

  • Constructor Details

  • Method Details

    • addLayer

      public final boolean addLayer(RenderLayer<T,M> p_115327_)
    • getModel

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

      public void render(T p_115308_, float p_115309_, float p_115310_, PoseStack p_115311_, MultiBufferSource p_115312_, int p_115313_)
      Overrides:
      render in class EntityRenderer<T extends LivingEntity>
    • getRenderType

      @Nullable protected RenderType getRenderType(T p_115322_, boolean p_115323_, boolean p_115324_, boolean p_115325_)
    • getOverlayCoords

      public static int getOverlayCoords(LivingEntity p_115339_, float p_115340_)
    • isBodyVisible

      protected boolean isBodyVisible(T p_115341_)
    • sleepDirectionToRotation

      private static float sleepDirectionToRotation(Direction p_115329_)
    • isShaking

      protected boolean isShaking(T p_115304_)
    • setupRotations

      protected void setupRotations(T p_115317_, PoseStack p_115318_, float p_115319_, float p_115320_, float p_115321_, float p_320045_)
    • getAttackAnim

      protected float getAttackAnim(T p_115343_, float p_115344_)
    • getBob

      protected float getBob(T p_115305_, float p_115306_)
    • getFlipDegrees

      protected float getFlipDegrees(T p_115337_)
    • getWhiteOverlayProgress

      protected float getWhiteOverlayProgress(T p_115334_, float p_115335_)
    • scale

      protected void scale(T p_115314_, PoseStack p_115315_, float p_115316_)
    • shouldShowName

      protected boolean shouldShowName(T p_115333_)
      Overrides:
      shouldShowName in class EntityRenderer<T extends LivingEntity>
    • isEntityUpsideDown

      public static boolean isEntityUpsideDown(LivingEntity p_194454_)
    • getShadowRadius

      protected float getShadowRadius(T p_316722_)
      Overrides:
      getShadowRadius in class EntityRenderer<T extends LivingEntity>