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> pLayer)
    • getModel

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

      public void render(T pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight)
      Overrides:
      render in class EntityRenderer<T extends LivingEntity>
    • getRenderType

      @Nullable protected RenderType getRenderType(T pLivingEntity, boolean pBodyVisible, boolean pTranslucent, boolean pGlowing)
    • getOverlayCoords

      public static int getOverlayCoords(LivingEntity pLivingEntity, float pU)
    • isBodyVisible

      protected boolean isBodyVisible(T pLivingEntity)
    • sleepDirectionToRotation

      private static float sleepDirectionToRotation(Direction pFacing)
    • isShaking

      protected boolean isShaking(T pEntity)
    • setupRotations

      protected void setupRotations(T pEntity, PoseStack pPoseStack, float pBob, float pYBodyRot, float pPartialTick, float pScale)
    • getAttackAnim

      protected float getAttackAnim(T pLivingBase, float pPartialTickTime)
      Returns where in the swing animation the living entity is (from 0 to 1). Args : entity, partialTickTime
    • getBob

      protected float getBob(T pLivingBase, float pPartialTick)
      Defines what float the third param in setRotationAngles of ModelBase is
    • getFlipDegrees

      protected float getFlipDegrees(T pLivingEntity)
    • getWhiteOverlayProgress

      protected float getWhiteOverlayProgress(T pLivingEntity, float pPartialTicks)
    • scale

      protected void scale(T pLivingEntity, PoseStack pPoseStack, float pPartialTickTime)
    • shouldShowName

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

      public static boolean isEntityUpsideDown(LivingEntity pEntity)
    • getShadowRadius

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