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/LivingEntityRendererintermediary net/minecraft/class_922official gyw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<FeatureRenderer<S, M>> private static final floatprotected final ItemModelManagerprotected MFields inherited from class net.minecraft.client.render.entity.EntityRenderer
dispatcher, field_32921, field_52257, shadowOpacity, shadowRadius -
Constructor Summary
ConstructorsConstructorDescriptionLivingEntityRenderer(EntityRendererFactory.Context ctx, M model, float shadowRadius) -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleanaddFeature(FeatureRenderer<S, M> feature) protected voidappendHitboxes(T t, ImmutableList.Builder<EntityHitbox> builder, float float2) private static floatclampBodyYaw(LivingEntity entity, float degrees, float tickProgress) protected floatgetAnimationCounter(S state) protected BoxgetBoundingBox(T t) protected floatprotected intgetMixColor(S state) getModel()static intgetOverlay(LivingEntityRenderState state, float whiteOverlayProgress) Returns the packed overlay color for an entity.protected @Nullable RenderLayergetRenderLayer(S state, boolean showBody, boolean translucent, boolean showOutline) Gets the render layer appropriate for rendering the passed entity.protected floatgetShadowRadius(S s) abstract IdentifiergetTexture(S state) private static floatprotected booleanDetermines whether the passed entity should render with a nameplate above its head.protected booleanReturns if this entity is shaking.protected booleanvoidrender(S s, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2) protected voidscale(S state, MatrixStack matrices) protected voidsetupTransforms(S state, MatrixStack matrices, float bodyYaw, float baseHeight) static booleanshouldFlipUpsideDown(LivingEntity entity) protected booleanshouldRenderFeatures(S state) voidupdateRenderState(T t, S s, float float2) Methods inherited from class net.minecraft.client.render.entity.EntityRenderer
canBeCulled, createRenderState, getAndUpdateRenderState, getBlockLight, getDisplayName, getLight, getPositionOffset, getShadowOpacity, getSkyLight, getTextRenderer, renderLabelIfPresent, shouldRender
-
Field Details
-
field_32939
private static final float field_32939- See Also:
- Mappings:
Namespace Name Mixin selector named field_32939Lnet/minecraft/client/render/entity/LivingEntityRenderer;field_32939:Fintermediary field_32939Lnet/minecraft/class_922;field_32939:Fofficial aLgyw;a:F
-
model
- Mappings:
Namespace Name Mixin selector named modelLnet/minecraft/client/render/entity/LivingEntityRenderer;model:Lnet/minecraft/client/render/entity/model/EntityModel;intermediary field_4737Lnet/minecraft/class_922;field_4737:Lnet/minecraft/class_583;official gLgyw;g:Lghn;
-
itemModelResolver
- Mappings:
Namespace Name Mixin selector named itemModelResolverLnet/minecraft/client/render/entity/LivingEntityRenderer;itemModelResolver:Lnet/minecraft/client/item/ItemModelManager;intermediary field_55298Lnet/minecraft/class_922;field_55298:Lnet/minecraft/class_10442;official hLgyw;h:Lhhg;
-
features
protected final List<FeatureRenderer<S extends LivingEntityRenderState,M extends EntityModel<? super S>>> features- Mappings:
Namespace Name Mixin selector named featuresLnet/minecraft/client/render/entity/LivingEntityRenderer;features:Ljava/util/List;intermediary field_4738Lnet/minecraft/class_922;field_4738:Ljava/util/List;official iLgyw;i:Ljava/util/List;
-
-
Constructor Details
-
LivingEntityRenderer
- 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)Vintermediary <init>Lnet/minecraft/class_922;<init>(Lnet/minecraft/class_5617$class_5618;Lnet/minecraft/class_583;F)Vofficial <init>Lgyw;<init>(Lgxv$a;Lghn;F)V
-
-
Method Details
-
addFeature
- Mappings:
Namespace Name Mixin selector named addFeatureLnet/minecraft/client/render/entity/LivingEntityRenderer;addFeature(Lnet/minecraft/client/render/entity/feature/FeatureRenderer;)Zintermediary method_4046Lnet/minecraft/class_922;method_4046(Lnet/minecraft/class_3887;)Zofficial aLgyw;a(Lhcj;)Z
-
getModel
- Specified by:
getModelin interfaceFeatureRendererContext<T extends LivingEntity,S extends LivingEntityRenderState> - Mappings:
Namespace Name Mixin selector named getModelLnet/minecraft/client/render/entity/feature/FeatureRendererContext;getModel()Lnet/minecraft/client/render/entity/model/EntityModel;intermediary method_4038Lnet/minecraft/class_3883;method_4038()Lnet/minecraft/class_583;official cLgzs;c()Lghn;
-
getBoundingBox
- Overrides:
getBoundingBoxin classEntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState> - Mappings:
Namespace Name Mixin selector named getBoundingBoxLnet/minecraft/client/render/entity/LivingEntityRenderer;getBoundingBox(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Box;intermediary method_62463Lnet/minecraft/class_922;method_62463(Lnet/minecraft/class_1309;)Lnet/minecraft/class_238;official aLgyw;a(Lbyf;)Lffx;
-
render
public void render(S s, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2) - Overrides:
renderin classEntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState> - Mappings:
Namespace Name Mixin selector named renderLnet/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)Vintermediary method_4054Lnet/minecraft/class_922;method_4054(Lnet/minecraft/class_10042;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)Vofficial aLgyw;a(Lhfe;Lfld;Lgrn;I)V
-
shouldRenderFeatures
- Mappings:
Namespace Name Mixin selector named shouldRenderFeaturesLnet/minecraft/client/render/entity/LivingEntityRenderer;shouldRenderFeatures(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)Zintermediary method_62483Lnet/minecraft/class_922;method_62483(Lnet/minecraft/class_10042;)Zofficial eLgyw;e(Lhfe;)Z
-
getMixColor
- Mappings:
Namespace Name Mixin selector named getMixColorLnet/minecraft/client/render/entity/LivingEntityRenderer;getMixColor(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)Iintermediary method_62484Lnet/minecraft/class_922;method_62484(Lnet/minecraft/class_10042;)Iofficial fLgyw;f(Lhfe;)I
-
getTexture
- Mappings:
Namespace Name Mixin selector named getTextureLnet/minecraft/client/render/entity/LivingEntityRenderer;getTexture(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)Lnet/minecraft/util/Identifier;intermediary method_3885Lnet/minecraft/class_922;method_3885(Lnet/minecraft/class_10042;)Lnet/minecraft/class_2960;official bLgyw;b(Lhfe;)Lalr;
-
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 getRenderLayerLnet/minecraft/client/render/entity/LivingEntityRenderer;getRenderLayer(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;ZZZ)Lnet/minecraft/client/render/RenderLayer;intermediary method_24302Lnet/minecraft/class_922;method_24302(Lnet/minecraft/class_10042;ZZZ)Lnet/minecraft/class_1921;official aLgyw;a(Lhfe;ZZZ)Lgry;
-
getOverlay
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 getOverlayLnet/minecraft/client/render/entity/LivingEntityRenderer;getOverlay(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;F)Iintermediary method_23622Lnet/minecraft/class_922;method_23622(Lnet/minecraft/class_10042;F)Iofficial aLgyw;a(Lhfe;F)I
-
isVisible
- Mappings:
Namespace Name Mixin selector named isVisibleLnet/minecraft/client/render/entity/LivingEntityRenderer;isVisible(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)Zintermediary method_4056Lnet/minecraft/class_922;method_4056(Lnet/minecraft/class_10042;)Zofficial dLgyw;d(Lhfe;)Z
-
getYaw
- Mappings:
Namespace Name Mixin selector named getYawLnet/minecraft/client/render/entity/LivingEntityRenderer;getYaw(Lnet/minecraft/util/math/Direction;)Fintermediary method_18656Lnet/minecraft/class_922;method_18656(Lnet/minecraft/class_2350;)Fofficial aLgyw;a(Ljc;)F
-
isShaking
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 isShakingLnet/minecraft/client/render/entity/LivingEntityRenderer;isShaking(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)Zintermediary method_25450Lnet/minecraft/class_922;method_25450(Lnet/minecraft/class_10042;)Zofficial aLgyw;a(Lhfe;)Z
-
setupTransforms
- Mappings:
Namespace Name Mixin selector named setupTransformsLnet/minecraft/client/render/entity/LivingEntityRenderer;setupTransforms(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;Lnet/minecraft/client/util/math/MatrixStack;FF)Vintermediary method_4058Lnet/minecraft/class_922;method_4058(Lnet/minecraft/class_10042;Lnet/minecraft/class_4587;FF)Vofficial aLgyw;a(Lhfe;Lfld;FF)V
-
getLyingPositionRotationDegrees
protected float getLyingPositionRotationDegrees()- Mappings:
Namespace Name Mixin selector named getLyingPositionRotationDegreesLnet/minecraft/client/render/entity/LivingEntityRenderer;getLyingPositionRotationDegrees()Fintermediary method_3919Lnet/minecraft/class_922;method_3919()Fofficial aS_Lgyw;aS_()F
-
getAnimationCounter
- Mappings:
Namespace Name Mixin selector named getAnimationCounterLnet/minecraft/client/render/entity/LivingEntityRenderer;getAnimationCounter(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)Fintermediary method_23185Lnet/minecraft/class_922;method_23185(Lnet/minecraft/class_10042;)Fofficial cLgyw;c(Lhfe;)F
-
scale
- Mappings:
Namespace Name Mixin selector named scaleLnet/minecraft/client/render/entity/LivingEntityRenderer;scale(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;Lnet/minecraft/client/util/math/MatrixStack;)Vintermediary method_4042Lnet/minecraft/class_922;method_4042(Lnet/minecraft/class_10042;Lnet/minecraft/class_4587;)Vofficial aLgyw;a(Lhfe;Lfld;)V
-
hasLabel
Description copied from class:EntityRendererDetermines 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:
hasLabelin classEntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState> - Mappings:
Namespace Name Mixin selector named hasLabelLnet/minecraft/client/render/entity/LivingEntityRenderer;hasLabel(Lnet/minecraft/entity/LivingEntity;D)Zintermediary method_4055Lnet/minecraft/class_922;method_4055(Lnet/minecraft/class_1309;D)Zofficial aLgyw;a(Lbyf;D)Z
-
shouldFlipUpsideDown
- Mappings:
Namespace Name Mixin selector named shouldFlipUpsideDownLnet/minecraft/client/render/entity/LivingEntityRenderer;shouldFlipUpsideDown(Lnet/minecraft/entity/LivingEntity;)Zintermediary method_38563Lnet/minecraft/class_922;method_38563(Lnet/minecraft/class_1309;)Zofficial bLgyw;b(Lbyf;)Z
-
getShadowRadius
- Overrides:
getShadowRadiusin classEntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState> - Mappings:
Namespace Name Mixin selector named getShadowRadiusLnet/minecraft/client/render/entity/LivingEntityRenderer;getShadowRadius(Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;)Fintermediary method_55832Lnet/minecraft/class_922;method_55832(Lnet/minecraft/class_10042;)Fofficial gLgyw;g(Lhfe;)F
-
updateRenderState
- Overrides:
updateRenderStatein classEntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState> - Mappings:
Namespace Name Mixin selector named updateRenderStateLnet/minecraft/client/render/entity/LivingEntityRenderer;updateRenderState(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/client/render/entity/state/LivingEntityRenderState;F)Vintermediary method_62355Lnet/minecraft/class_922;method_62355(Lnet/minecraft/class_1309;Lnet/minecraft/class_10042;F)Vofficial aLgyw;a(Lbyf;Lhfe;F)V
-
appendHitboxes
- Overrides:
appendHitboxesin classEntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState> - Mappings:
Namespace Name Mixin selector named appendHitboxesLnet/minecraft/client/render/entity/LivingEntityRenderer;appendHitboxes(Lnet/minecraft/entity/LivingEntity;Lcom/google/common/collect/ImmutableList$Builder;F)Vintermediary method_68838Lnet/minecraft/class_922;method_68838(Lnet/minecraft/class_1309;Lcom/google/common/collect/ImmutableList$Builder;F)Vofficial aLgyw;a(Lbyf;Lcom/google/common/collect/ImmutableList$Builder;F)V
-
clampBodyYaw
- Mappings:
Namespace Name Mixin selector named clampBodyYawLnet/minecraft/client/render/entity/LivingEntityRenderer;clampBodyYaw(Lnet/minecraft/entity/LivingEntity;FF)Fintermediary method_62482Lnet/minecraft/class_922;method_62482(Lnet/minecraft/class_1309;FF)Fofficial aLgyw;a(Lbyf;FF)F
-