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

java.lang.Object
net.minecraft.client.render.entity.EntityRenderer<T>
net.minecraft.client.render.entity.LivingEntityRenderer<T,M>
All Implemented Interfaces:
FeatureRendererContext<T,M>
Direct Known Subclasses:
ArmorStandEntityRenderer, MobEntityRenderer, PlayerEntityRenderer

@Environment(CLIENT) public abstract class LivingEntityRenderer<T extends LivingEntity,M extends EntityModel<T>> extends EntityRenderer<T> implements FeatureRendererContext<T,M>
Mappings:
Namespace Name
named net/minecraft/client/render/entity/LivingEntityRenderer
intermediary net/minecraft/class_922
official gka
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/render/entity/LivingEntityRenderer;LOGGER:Lorg/slf4j/Logger;
      intermediary field_21011 Lnet/minecraft/class_922;field_21011:Lorg/slf4j/Logger;
      official a Lgka;a:Lorg/slf4j/Logger;
    • field_32939

      private static final float field_32939
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32939 Lnet/minecraft/client/render/entity/LivingEntityRenderer;field_32939:F
      intermediary field_32939 Lnet/minecraft/class_922;field_32939:F
      official h Lgka;h:F
    • model

      protected M extends EntityModel<T> model
      Mappings:
      Namespace Name Mixin selector
      named model Lnet/minecraft/client/render/entity/LivingEntityRenderer;model:Lnet/minecraft/client/render/entity/model/EntityModel;
      intermediary field_4737 Lnet/minecraft/class_922;field_4737:Lnet/minecraft/class_583;
      official f Lgka;f:Lfuc;
    • features

      protected final List<FeatureRenderer<T extends LivingEntity,M extends EntityModel<T>>> features
      Mappings:
      Namespace Name Mixin selector
      named features Lnet/minecraft/client/render/entity/LivingEntityRenderer;features:Ljava/util/List;
      intermediary field_4738 Lnet/minecraft/class_922;field_4738:Ljava/util/List;
      official g Lgka;g:Ljava/util/List;
  • Constructor Details

    • LivingEntityRenderer

      public LivingEntityRenderer(EntityRendererFactory.Context ctx, M model, float shadowRadius)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/entity/LivingEntityRenderer;<init>(Lnet/minecraft/client/render/entity/EntityRendererFactory$Context;Lnet/minecraft/client/render/entity/model/EntityModel;F)V
      intermediary <init> Lnet/minecraft/class_922;<init>(Lnet/minecraft/class_5617$class_5618;Lnet/minecraft/class_583;F)V
      official <init> Lgka;<init>(Lgiz$a;Lfuc;F)V
  • Method Details

    • addFeature

      protected final boolean addFeature(FeatureRenderer<T,M> feature)
      Mappings:
      Namespace Name Mixin selector
      named addFeature Lnet/minecraft/client/render/entity/LivingEntityRenderer;addFeature(Lnet/minecraft/client/render/entity/feature/FeatureRenderer;)Z
      intermediary method_4046 Lnet/minecraft/class_922;method_4046(Lnet/minecraft/class_3887;)Z
      official a Lgka;a(Lgnl;)Z
    • getModel

      public M getModel()
      Specified by:
      getModel in interface FeatureRendererContext<T extends LivingEntity,M extends EntityModel<T>>
      Mappings:
      Namespace Name Mixin selector
      named getModel Lnet/minecraft/client/render/entity/feature/FeatureRendererContext;getModel()Lnet/minecraft/client/render/entity/model/EntityModel;
      intermediary method_4038 Lnet/minecraft/class_3883;method_4038()Lnet/minecraft/class_583;
      official a Lgkv;a()Lfuc;
    • render

      public void render(T t, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)
      Overrides:
      render in class EntityRenderer<T extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/render/entity/LivingEntityRenderer;render(Lnet/minecraft/entity/LivingEntity;FFLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V
      intermediary method_4054 Lnet/minecraft/class_922;method_4054(Lnet/minecraft/class_1309;FFLnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
      official a Lgka;a(Lbtr;FFLfaa;Lgdq;I)V
    • getRenderLayer

      @Nullable protected @Nullable RenderLayer getRenderLayer(T entity, boolean showBody, boolean translucent, boolean showOutline)
      Gets the render layer appropriate for rendering the passed entity. Returns null if the entity should not be rendered.
      Mappings:
      Namespace Name Mixin selector
      named getRenderLayer Lnet/minecraft/client/render/entity/LivingEntityRenderer;getRenderLayer(Lnet/minecraft/entity/LivingEntity;ZZZ)Lnet/minecraft/client/render/RenderLayer;
      intermediary method_24302 Lnet/minecraft/class_922;method_24302(Lnet/minecraft/class_1309;ZZZ)Lnet/minecraft/class_1921;
      official a Lgka;a(Lbtr;ZZZ)Lgdy;
    • getOverlay

      public static int getOverlay(LivingEntity entity, float whiteOverlayProgress)
      Returns the packed overlay color for an entity. It is determined by the entity's death progress and whether the entity is flashing.
      Returns:
      the packed overlay color for an entity
      Mappings:
      Namespace Name Mixin selector
      named getOverlay Lnet/minecraft/client/render/entity/LivingEntityRenderer;getOverlay(Lnet/minecraft/entity/LivingEntity;F)I
      intermediary method_23622 Lnet/minecraft/class_922;method_23622(Lnet/minecraft/class_1309;F)I
      official c Lgka;c(Lbtr;F)I
    • isVisible

      protected boolean isVisible(T entity)
      Mappings:
      Namespace Name Mixin selector
      named isVisible Lnet/minecraft/client/render/entity/LivingEntityRenderer;isVisible(Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_4056 Lnet/minecraft/class_922;method_4056(Lnet/minecraft/class_1309;)Z
      official d Lgka;d(Lbtr;)Z
    • getYaw

      private static float getYaw(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named getYaw Lnet/minecraft/client/render/entity/LivingEntityRenderer;getYaw(Lnet/minecraft/util/math/Direction;)F
      intermediary method_18656 Lnet/minecraft/class_922;method_18656(Lnet/minecraft/class_2350;)F
      official a Lgka;a(Lje;)F
    • isShaking

      protected boolean isShaking(T entity)
      Returns if this entity is shaking. Specifically, in the way a zombie villager, zombie, husk, or piglin undergoing conversion shakes.
      Returns:
      if this entity is shaking
      Mappings:
      Namespace Name Mixin selector
      named isShaking Lnet/minecraft/client/render/entity/LivingEntityRenderer;isShaking(Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_25450 Lnet/minecraft/class_922;method_25450(Lnet/minecraft/class_1309;)Z
      official a Lgka;a(Lbtr;)Z
    • setupTransforms

      protected void setupTransforms(T entity, MatrixStack matrices, float animationProgress, float bodyYaw, float tickDelta, float scale)
      Mappings:
      Namespace Name Mixin selector
      named setupTransforms Lnet/minecraft/client/render/entity/LivingEntityRenderer;setupTransforms(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/client/util/math/MatrixStack;FFFF)V
      intermediary method_4058 Lnet/minecraft/class_922;method_4058(Lnet/minecraft/class_1309;Lnet/minecraft/class_4587;FFFF)V
      official a Lgka;a(Lbtr;Lfaa;FFFF)V
    • getHandSwingProgress

      protected float getHandSwingProgress(T entity, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getHandSwingProgress Lnet/minecraft/client/render/entity/LivingEntityRenderer;getHandSwingProgress(Lnet/minecraft/entity/LivingEntity;F)F
      intermediary method_4044 Lnet/minecraft/class_922;method_4044(Lnet/minecraft/class_1309;F)F
      official d Lgka;d(Lbtr;F)F
    • getAnimationProgress

      protected float getAnimationProgress(T entity, float tickDelta)
      This value is passed to other methods when calculating angles for animation. It's typically just the sum of the entity's age (in ticks) and the passed in tickDelta.
      Mappings:
      Namespace Name Mixin selector
      named getAnimationProgress Lnet/minecraft/client/render/entity/LivingEntityRenderer;getAnimationProgress(Lnet/minecraft/entity/LivingEntity;F)F
      intermediary method_4045 Lnet/minecraft/class_922;method_4045(Lnet/minecraft/class_1309;F)F
      official a Lgka;a(Lbtr;F)F
    • getLyingAngle

      protected float getLyingAngle(T entity)
      Mappings:
      Namespace Name Mixin selector
      named getLyingAngle Lnet/minecraft/client/render/entity/LivingEntityRenderer;getLyingAngle(Lnet/minecraft/entity/LivingEntity;)F
      intermediary method_4039 Lnet/minecraft/class_922;method_4039(Lnet/minecraft/class_1309;)F
      official c Lgka;c(Lbtr;)F
    • getAnimationCounter

      protected float getAnimationCounter(T entity, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getAnimationCounter Lnet/minecraft/client/render/entity/LivingEntityRenderer;getAnimationCounter(Lnet/minecraft/entity/LivingEntity;F)F
      intermediary method_23185 Lnet/minecraft/class_922;method_23185(Lnet/minecraft/class_1309;F)F
      official b Lgka;b(Lbtr;F)F
    • scale

      protected void scale(T entity, MatrixStack matrices, float amount)
      Mappings:
      Namespace Name Mixin selector
      named scale Lnet/minecraft/client/render/entity/LivingEntityRenderer;scale(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/client/util/math/MatrixStack;F)V
      intermediary method_4042 Lnet/minecraft/class_922;method_4042(Lnet/minecraft/class_1309;Lnet/minecraft/class_4587;F)V
      official a Lgka;a(Lbtr;Lfaa;F)V
    • hasLabel

      protected boolean hasLabel(T t)
      Description copied from class: EntityRenderer
      Determines whether the passed entity should render with a nameplate above its head.

      Checks for a custom nametag on living entities, and for teams/team visibilities for players.

      Overrides:
      hasLabel in class EntityRenderer<T extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      named hasLabel Lnet/minecraft/client/render/entity/LivingEntityRenderer;hasLabel(Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_4055 Lnet/minecraft/class_922;method_4055(Lnet/minecraft/class_1309;)Z
      official b Lgka;b(Lbtr;)Z
    • shouldFlipUpsideDown

      public static boolean shouldFlipUpsideDown(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      named shouldFlipUpsideDown Lnet/minecraft/client/render/entity/LivingEntityRenderer;shouldFlipUpsideDown(Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_38563 Lnet/minecraft/class_922;method_38563(Lnet/minecraft/class_1309;)Z
      official e Lgka;e(Lbtr;)Z
    • getShadowRadius

      protected float getShadowRadius(T t)
      Overrides:
      getShadowRadius in class EntityRenderer<T extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      named getShadowRadius Lnet/minecraft/client/render/entity/LivingEntityRenderer;getShadowRadius(Lnet/minecraft/entity/LivingEntity;)F
      intermediary method_55832 Lnet/minecraft/class_922;method_55832(Lnet/minecraft/class_1309;)F
      official f Lgka;f(Lbtr;)F