Class LivingEntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState,M extends EntityModel<? super S>>

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

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

    • 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 a Lgsq;a:F
    • model

      protected M extends EntityModel<? super S> 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 h Lgsq;h:Lgbl;
    • itemRenderer

      protected final ItemRenderer itemRenderer
      Mappings:
      Namespace Name Mixin selector
      named itemRenderer Lnet/minecraft/client/render/entity/LivingEntityRenderer;itemRenderer:Lnet/minecraft/client/render/item/ItemRenderer;
      intermediary field_53193 Lnet/minecraft/class_922;field_53193:Lnet/minecraft/class_918;
      official i Lgsq;i:Lgsn;
    • features

      protected final List<FeatureRenderer<S extends LivingEntityRenderState,M extends EntityModel<? super S>>> 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 j Lgsq;j: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> Lgsq;<init>(Lgrp$a;Lgbl;F)V
  • Method Details

    • addFeature

      protected final boolean addFeature(FeatureRenderer<S,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 Lgsq;a(Lgwe;)Z
    • getModel

      public M getModel()
      Specified by:
      getModel in interface FeatureRendererContext<T extends LivingEntity,S extends LivingEntityRenderState>
      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 c Lgtm;c()Lgbl;
    • getBoundingBox

      protected Box getBoundingBox(T t)
      Overrides:
      getBoundingBox in class EntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState>
      Mappings:
      Namespace Name Mixin selector
      named getBoundingBox Lnet/minecraft/client/render/entity/LivingEntityRenderer;getBoundingBox(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Box;
      intermediary method_62463 Lnet/minecraft/class_922;method_62463(Lnet/minecraft/class_1309;)Lnet/minecraft/class_238;
      official a Lgsq;a(Lbwf;)Lfbs;
    • render

      public void render(S s, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)
      Overrides:
      render in class EntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState>
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/render/entity/LivingEntityRenderer;render(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V
      intermediary method_4054 Lnet/minecraft/class_922;method_4054(Lnet/minecraft/class_10042;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
      official a Lgsq;a(Lgys;Lfgr;Lglk;I)V
    • shouldRenderFeatures

      protected boolean shouldRenderFeatures(S state)
      Mappings:
      Namespace Name Mixin selector
      named shouldRenderFeatures Lnet/minecraft/client/render/entity/LivingEntityRenderer;shouldRenderFeatures(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)Z
      intermediary method_62483 Lnet/minecraft/class_922;method_62483(Lnet/minecraft/class_10042;)Z
      official e Lgsq;e(Lgys;)Z
    • getMixColor

      protected int getMixColor(S state)
      Mappings:
      Namespace Name Mixin selector
      named getMixColor Lnet/minecraft/client/render/entity/LivingEntityRenderer;getMixColor(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)I
      intermediary method_62484 Lnet/minecraft/class_922;method_62484(Lnet/minecraft/class_10042;)I
      official f Lgsq;f(Lgys;)I
    • getTexture

      public abstract Identifier getTexture(S state)
      Mappings:
      Namespace Name Mixin selector
      named getTexture Lnet/minecraft/client/render/entity/LivingEntityRenderer;getTexture(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)Lnet/minecraft/util/Identifier;
      intermediary method_3885 Lnet/minecraft/class_922;method_3885(Lnet/minecraft/class_10042;)Lnet/minecraft/class_2960;
      official b Lgsq;b(Lgys;)Lalz;
    • getRenderLayer

      @Nullable protected @Nullable RenderLayer getRenderLayer(S state, 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/client/render/entity/state/LivingEntityRenderState;ZZZ)Lnet/minecraft/client/render/RenderLayer;
      intermediary method_24302 Lnet/minecraft/class_922;method_24302(Lnet/minecraft/class_10042;ZZZ)Lnet/minecraft/class_1921;
      official a Lgsq;a(Lgys;ZZZ)Lglu;
    • getOverlay

      public static int getOverlay(LivingEntityRenderState state, 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/client/render/entity/state/LivingEntityRenderState;F)I
      intermediary method_23622 Lnet/minecraft/class_922;method_23622(Lnet/minecraft/class_10042;F)I
      official a Lgsq;a(Lgys;F)I
    • isVisible

      protected boolean isVisible(S state)
      Mappings:
      Namespace Name Mixin selector
      named isVisible Lnet/minecraft/client/render/entity/LivingEntityRenderer;isVisible(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)Z
      intermediary method_4056 Lnet/minecraft/class_922;method_4056(Lnet/minecraft/class_10042;)Z
      official d Lgsq;d(Lgys;)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 Lgsq;a(Ljm;)F
    • isShaking

      protected boolean isShaking(S state)
      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/client/render/entity/state/LivingEntityRenderState;)Z
      intermediary method_25450 Lnet/minecraft/class_922;method_25450(Lnet/minecraft/class_10042;)Z
      official a Lgsq;a(Lgys;)Z
    • setupTransforms

      protected void setupTransforms(S state, MatrixStack matrices, float animationProgress, float bodyYaw)
      Mappings:
      Namespace Name Mixin selector
      named setupTransforms Lnet/minecraft/client/render/entity/LivingEntityRenderer;setupTransforms(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;Lnet/minecraft/client/util/math/MatrixStack;FF)V
      intermediary method_4058 Lnet/minecraft/class_922;method_4058(Lnet/minecraft/class_10042;Lnet/minecraft/class_4587;FF)V
      official a Lgsq;a(Lgys;Lfgr;FF)V
    • method_3919

      protected float method_3919()
      Mappings:
      Namespace Name Mixin selector
      named method_3919 Lnet/minecraft/client/render/entity/LivingEntityRenderer;method_3919()F
      intermediary method_3919 Lnet/minecraft/class_922;method_3919()F
      official aX_ Lgsq;aX_()F
    • getAnimationCounter

      protected float getAnimationCounter(S state)
      Mappings:
      Namespace Name Mixin selector
      named getAnimationCounter Lnet/minecraft/client/render/entity/LivingEntityRenderer;getAnimationCounter(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)F
      intermediary method_23185 Lnet/minecraft/class_922;method_23185(Lnet/minecraft/class_10042;)F
      official c Lgsq;c(Lgys;)F
    • scale

      protected void scale(S state, MatrixStack matrices)
      Mappings:
      Namespace Name Mixin selector
      named scale Lnet/minecraft/client/render/entity/LivingEntityRenderer;scale(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;Lnet/minecraft/client/util/math/MatrixStack;)V
      intermediary method_4042 Lnet/minecraft/class_922;method_4042(Lnet/minecraft/class_10042;Lnet/minecraft/class_4587;)V
      official a Lgsq;a(Lgys;Lfgr;)V
    • hasLabel

      protected boolean hasLabel(T t, double double2)
      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,S extends LivingEntityRenderState>
      Mappings:
      Namespace Name Mixin selector
      named hasLabel Lnet/minecraft/client/render/entity/LivingEntityRenderer;hasLabel(Lnet/minecraft/entity/LivingEntity;D)Z
      intermediary method_4055 Lnet/minecraft/class_922;method_4055(Lnet/minecraft/class_1309;D)Z
      official a Lgsq;a(Lbwf;D)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 b Lgsq;b(Lbwf;)Z
    • getShadowRadius

      protected float getShadowRadius(S s)
      Overrides:
      getShadowRadius in class EntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState>
      Mappings:
      Namespace Name Mixin selector
      named getShadowRadius Lnet/minecraft/client/render/entity/LivingEntityRenderer;getShadowRadius(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)F
      intermediary method_55832 Lnet/minecraft/class_922;method_55832(Lnet/minecraft/class_10042;)F
      official g Lgsq;g(Lgys;)F
    • updateRenderState

      public void updateRenderState(T t, S s, float float2)
      Overrides:
      updateRenderState in class EntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState>
      Mappings:
      Namespace Name Mixin selector
      named updateRenderState Lnet/minecraft/client/render/entity/LivingEntityRenderer;updateRenderState(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;F)V
      intermediary method_62355 Lnet/minecraft/class_922;method_62355(Lnet/minecraft/class_1309;Lnet/minecraft/class_10042;F)V
      official a Lgsq;a(Lbwf;Lgys;F)V
    • clampBodyYaw

      private static float clampBodyYaw(LivingEntity entity, float degrees, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named clampBodyYaw Lnet/minecraft/client/render/entity/LivingEntityRenderer;clampBodyYaw(Lnet/minecraft/entity/LivingEntity;FF)F
      intermediary method_62482 Lnet/minecraft/class_922;method_62482(Lnet/minecraft/class_1309;FF)F
      official a Lgsq;a(Lbwf;FF)F