类 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>
所有已实现的接口:
RenderLayerParent<T,M>
直接已知子类:
ArmorStandRenderer, MobRenderer, PlayerRenderer

public abstract class LivingEntityRenderer<T extends LivingEntity,M extends EntityModel<T>> extends EntityRenderer<T> implements RenderLayerParent<T,M>
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • addLayer

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

      public M getModel()
      指定者:
      getModel 在接口中 RenderLayerParent<T extends LivingEntity,M extends EntityModel<T>>
    • render

      public void render(T pEntity, float pEntityYaw, float pPartialTicks, PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight)
      覆盖:
      render 在类中 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 pEntityLiving, PoseStack pMatrixStack, float pAgeInTicks, float pRotationYaw, float pPartialTicks)
    • getAttackAnim

      protected float getAttackAnim(T pLivingBase, float pPartialTickTime)
    • getBob

      protected float getBob(T pLivingBase, float pPartialTick)
    • getFlipDegrees

      protected float getFlipDegrees(T pLivingEntity)
    • getWhiteOverlayProgress

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

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

      protected boolean shouldShowName(T pEntity)
      覆盖:
      shouldShowName 在类中 EntityRenderer<T extends LivingEntity>
    • isEntityUpsideDown

      public static boolean isEntityUpsideDown(LivingEntity pEntity)