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 official ficintermediary net/minecraft/class_922named net/minecraft/client/render/entity/LivingEntityRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<FeatureRenderer<T,M>> private static final floatprivate static final Loggerprotected MFields inherited from class net.minecraft.client.render.entity.EntityRenderer
dispatcher, field_32921, shadowOpacity, shadowRadius -
Constructor Summary
ConstructorsConstructorDescriptionLivingEntityRenderer(EntityRendererFactory.Context ctx, M model, float shadowRadius) -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleanaddFeature(FeatureRenderer<T, M> feature) protected floatgetAnimationCounter(T entity, float tickDelta) protected floatgetAnimationProgress(T entity, float tickDelta) protected floatgetHandSwingProgress(T entity, float tickDelta) protected floatgetLyingAngle(T entity) getModel()static intgetOverlay(LivingEntity entity, float whiteOverlayProgress) Returns the packed overlay color for an entity.protected @Nullable RenderLayergetRenderLayer(T entity, boolean showBody, boolean translucent, boolean showOutline) private static floatprotected booleanprotected booleanvoidmethod_4054(T t, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2) protected booleanmethod_4055(T t) protected voidscale(T entity, MatrixStack matrices, float amount) protected voidsetupTransforms(T entity, MatrixStack matrices, float animationProgress, float bodyYaw, float tickDelta) static booleanshouldFlipUpsideDown(LivingEntity entity) Methods inherited from class net.minecraft.client.render.entity.EntityRenderer
getBlockLight, getLight, getPositionOffset, getSkyLight, getTextRenderer, getTexture, hasLabel, render, renderLabelIfPresent, shouldRenderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.render.entity.feature.FeatureRendererContext
getTexture
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLfic;a:Lorg/slf4j/Logger;intermediary field_21011Lnet/minecraft/class_922;field_21011:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/render/entity/LivingEntityRenderer;LOGGER:Lorg/slf4j/Logger;
-
field_32939
private static final float field_32939- See Also:
- Mappings:
Namespace Name Mixin selector official hLfic;h:Fintermediary field_32939Lnet/minecraft/class_922;field_32939:Fnamed field_32939Lnet/minecraft/client/render/entity/LivingEntityRenderer;field_32939:F
-
model
- Mappings:
Namespace Name Mixin selector official fLfic;f:Letx;intermediary field_4737Lnet/minecraft/class_922;field_4737:Lnet/minecraft/class_583;named modelLnet/minecraft/client/render/entity/LivingEntityRenderer;model:Lnet/minecraft/client/render/entity/model/EntityModel;
-
features
- Mappings:
Namespace Name Mixin selector official gLfic;g:Ljava/util/List;intermediary field_4738Lnet/minecraft/class_922;field_4738:Ljava/util/List;named featuresLnet/minecraft/client/render/entity/LivingEntityRenderer;features:Ljava/util/List;
-
-
Constructor Details
-
LivingEntityRenderer
- Mappings:
Namespace Name Mixin selector official <init>Lfic;<init>(Lfhb$a;Letx;F)Vintermediary <init>Lnet/minecraft/class_922;<init>(Lnet/minecraft/class_5617$class_5618;Lnet/minecraft/class_583;F)Vnamed <init>Lnet/minecraft/client/render/entity/LivingEntityRenderer;<init>(Lnet/minecraft/client/render/entity/EntityRendererFactory$Context;Lnet/minecraft/client/render/entity/model/EntityModel;F)V
-
-
Method Details
-
addFeature
- Mappings:
Namespace Name Mixin selector official aLfic;a(Lfli;)Zintermediary method_4046Lnet/minecraft/class_922;method_4046(Lnet/minecraft/class_3887;)Znamed addFeatureLnet/minecraft/client/render/entity/LivingEntityRenderer;addFeature(Lnet/minecraft/client/render/entity/feature/FeatureRenderer;)Z
-
getModel
- Specified by:
getModelin interfaceFeatureRendererContext<T extends LivingEntity,M extends EntityModel<T>> - Mappings:
Namespace Name Mixin selector official aLfiw;a()Letx;intermediary method_4038Lnet/minecraft/class_3883;method_4038()Lnet/minecraft/class_583;named getModelLnet/minecraft/client/render/entity/feature/FeatureRendererContext;getModel()Lnet/minecraft/client/render/entity/model/EntityModel;
-
method_4054
public void method_4054(T t, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2) - Mappings:
Namespace Name Mixin selector official aLfic;a(Lbdn;FFLedd;Lfcg;I)Vintermediary method_4054Lnet/minecraft/class_922;method_4054(Lnet/minecraft/class_1309;FFLnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)Vnamed method_4054Lnet/minecraft/client/render/entity/LivingEntityRenderer;method_4054(Lnet/minecraft/entity/LivingEntity;FFLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V
-
getRenderLayer
@Nullable protected @Nullable RenderLayer getRenderLayer(T entity, boolean showBody, boolean translucent, boolean showOutline) - Mappings:
Namespace Name Mixin selector official aLfic;a(Lbdn;ZZZ)Lfco;intermediary method_24302Lnet/minecraft/class_922;method_24302(Lnet/minecraft/class_1309;ZZZ)Lnet/minecraft/class_1921;named getRenderLayerLnet/minecraft/client/render/entity/LivingEntityRenderer;getRenderLayer(Lnet/minecraft/entity/LivingEntity;ZZZ)Lnet/minecraft/client/render/RenderLayer;
-
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 official cLfic;c(Lbdn;F)Iintermediary method_23622Lnet/minecraft/class_922;method_23622(Lnet/minecraft/class_1309;F)Inamed getOverlayLnet/minecraft/client/render/entity/LivingEntityRenderer;getOverlay(Lnet/minecraft/entity/LivingEntity;F)I
-
isVisible
- Mappings:
Namespace Name Mixin selector official dLfic;d(Lbdn;)Zintermediary method_4056Lnet/minecraft/class_922;method_4056(Lnet/minecraft/class_1309;)Znamed isVisibleLnet/minecraft/client/render/entity/LivingEntityRenderer;isVisible(Lnet/minecraft/entity/LivingEntity;)Z
-
getYaw
- Mappings:
Namespace Name Mixin selector official aLfic;a(Lgw;)Fintermediary method_18656Lnet/minecraft/class_922;method_18656(Lnet/minecraft/class_2350;)Fnamed getYawLnet/minecraft/client/render/entity/LivingEntityRenderer;getYaw(Lnet/minecraft/util/math/Direction;)F
-
isShaking
- Mappings:
Namespace Name Mixin selector official aLfic;a(Lbdn;)Zintermediary method_25450Lnet/minecraft/class_922;method_25450(Lnet/minecraft/class_1309;)Znamed isShakingLnet/minecraft/client/render/entity/LivingEntityRenderer;isShaking(Lnet/minecraft/entity/LivingEntity;)Z
-
setupTransforms
protected void setupTransforms(T entity, MatrixStack matrices, float animationProgress, float bodyYaw, float tickDelta) - Mappings:
Namespace Name Mixin selector official aLfic;a(Lbdn;Ledd;FFF)Vintermediary method_4058Lnet/minecraft/class_922;method_4058(Lnet/minecraft/class_1309;Lnet/minecraft/class_4587;FFF)Vnamed setupTransformsLnet/minecraft/client/render/entity/LivingEntityRenderer;setupTransforms(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/client/util/math/MatrixStack;FFF)V
-
getHandSwingProgress
- Mappings:
Namespace Name Mixin selector official dLfic;d(Lbdn;F)Fintermediary method_4044Lnet/minecraft/class_922;method_4044(Lnet/minecraft/class_1309;F)Fnamed getHandSwingProgressLnet/minecraft/client/render/entity/LivingEntityRenderer;getHandSwingProgress(Lnet/minecraft/entity/LivingEntity;F)F
-
getAnimationProgress
- Mappings:
Namespace Name Mixin selector official aLfic;a(Lbdn;F)Fintermediary method_4045Lnet/minecraft/class_922;method_4045(Lnet/minecraft/class_1309;F)Fnamed getAnimationProgressLnet/minecraft/client/render/entity/LivingEntityRenderer;getAnimationProgress(Lnet/minecraft/entity/LivingEntity;F)F
-
getLyingAngle
- Mappings:
Namespace Name Mixin selector official cLfic;c(Lbdn;)Fintermediary method_4039Lnet/minecraft/class_922;method_4039(Lnet/minecraft/class_1309;)Fnamed getLyingAngleLnet/minecraft/client/render/entity/LivingEntityRenderer;getLyingAngle(Lnet/minecraft/entity/LivingEntity;)F
-
getAnimationCounter
- Mappings:
Namespace Name Mixin selector official bLfic;b(Lbdn;F)Fintermediary method_23185Lnet/minecraft/class_922;method_23185(Lnet/minecraft/class_1309;F)Fnamed getAnimationCounterLnet/minecraft/client/render/entity/LivingEntityRenderer;getAnimationCounter(Lnet/minecraft/entity/LivingEntity;F)F
-
scale
- Mappings:
Namespace Name Mixin selector official aLfic;a(Lbdn;Ledd;F)Vintermediary method_4042Lnet/minecraft/class_922;method_4042(Lnet/minecraft/class_1309;Lnet/minecraft/class_4587;F)Vnamed scaleLnet/minecraft/client/render/entity/LivingEntityRenderer;scale(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/client/util/math/MatrixStack;F)V
-
method_4055
- Mappings:
Namespace Name Mixin selector official bLfic;b(Lbdn;)Zintermediary method_4055Lnet/minecraft/class_922;method_4055(Lnet/minecraft/class_1309;)Znamed method_4055Lnet/minecraft/client/render/entity/LivingEntityRenderer;method_4055(Lnet/minecraft/entity/LivingEntity;)Z
-
shouldFlipUpsideDown
- Mappings:
Namespace Name Mixin selector official eLfic;e(Lbdn;)Zintermediary method_38563Lnet/minecraft/class_922;method_38563(Lnet/minecraft/class_1309;)Znamed shouldFlipUpsideDownLnet/minecraft/client/render/entity/LivingEntityRenderer;shouldFlipUpsideDown(Lnet/minecraft/entity/LivingEntity;)Z
-