net.minecraft.client.render.entity

public abstract class LivingEntityRenderer<T extends LivingEntity, S extends LivingEntityRenderState, M extends EntityModel<? super S>>

extends EntityRenderer<T, S> implements FeatureRendererContext<S, M>

All mapped superinterfaces:

FeatureRendererContext

net.minecraft.client.renderer.entity.LivingEntityRenderer
net.minecraft.class_922
net.minecraft.client.render.entity.LivingEntityRenderer

Field summary

Modifier and TypeField
private static final float
EYE_BED_OFFSET
field_32939
field_32939
protected M
model
field_4737
model
protected final ItemModelManager
itemModelResolver
field_55298
itemModelResolver
protected final List<FeatureRenderer<S, M>>
layers
field_4738
features

Constructor summary

ModifierConstructor
public (EntityRendererFactory$Context ctx, M model, float shadowRadius)

Method summary

Modifier and TypeMethod
protected final boolean
addLayer(RenderLayer<S, M> layer)
method_4046(class_3887<S, M> arg0)
addFeature(FeatureRenderer<S, M> feature)
public M
getModel()
method_4038()
getModel()
protected Box
getBoundingBoxForCulling(T entity)
method_62463(T arg0)
getBoundingBox(T arg0)
public void
submit(S state, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, CameraRenderState camera)
method_4054(S arg0, class_4587 arg1, class_11659 arg2, class_12075 arg3)
render(S arg0, MatrixStack arg1, OrderedRenderCommandQueue arg2, CameraRenderState arg3)
protected boolean
shouldRenderLayers(S state)
method_62483(S arg0)
shouldRenderFeatures(S state)
protected int
getModelTint(S state)
method_62484(S arg0)
getMixColor(S state)
public abstract Identifier
getTextureLocation(S state)
method_3885(S arg0)
getTexture(S state)
protected RenderLayer
getRenderType(S state, boolean isBodyVisible, boolean forceTransparent, boolean appearGlowing)
method_24302(S arg0, boolean arg1, boolean arg2, boolean arg3)
getRenderLayer(S state, boolean showBody, boolean translucent, boolean showOutline)
public static int
getOverlayCoords(LivingEntityRenderState state, float whiteOverlayProgress)
method_23622(class_10042 arg0, float arg1)
getOverlay(LivingEntityRenderState state, float whiteOverlayProgress)
protected boolean
isBodyVisible(S state)
method_4056(S arg0)
isVisible(S state)
private static float
sleepDirectionToRotation(Direction direction)
method_18656(class_2350 arg0)
getYaw(Direction direction)
protected boolean
isShaking(S state)
method_25450(S arg0)
isShaking(S state)
protected void
setupRotations(S state, PoseStack poseStack, float bodyRot, float entityScale)
method_4058(S arg0, class_4587 arg1, float arg2, float arg3)
setupTransforms(S state, MatrixStack matrices, float bodyYaw, float baseHeight)
protected float
getFlipDegrees()
method_3919()
getLyingPositionRotationDegrees()
protected float
getWhiteOverlayProgress(S state)
method_23185(S arg0)
getAnimationCounter(S state)
protected void
scale(S state, PoseStack poseStack)
method_4042(S arg0, class_4587 arg1)
scale(S state, MatrixStack matrices)
protected boolean
shouldShowName(T entity, double distanceToCameraSq)
method_4055(T arg0, double arg1)
hasLabel(T arg0, double arg1)
public boolean
isEntityUpsideDown(T mob)
method_38563(T arg0)
shouldFlipUpsideDown(T entity)
protected static boolean
isUpsideDownName(String name)
method_74932(String arg0)
shouldFlipUpsideDown(String name)
protected float
getShadowRadius(S state)
method_55832(S arg0)
getShadowRadius(S arg0)
public void
extractRenderState(T entity, S state, float partialTicks)
method_62355(T arg0, S arg1, float arg2)
updateRenderState(T arg0, S arg1, float arg2)
protected void
extractNameTags(T entity, S state, float partialTicks)
method_1_5143(T arg0, S arg1, float arg2)
extractNameplateSettings(T arg0, S arg1, float arg2)
private static float
solveBodyRot(LivingEntity entity, float headRot, float partialTicks)
method_62482(class_1309 arg0, float arg1, float arg2)
clampBodyYaw(LivingEntity entity, float degrees, float tickProgress)
protected void
extractNameTags(Entity entity, EntityRenderState state, float partialTicks)
method_1_5132(class_1297 arg0, class_10017 arg1, float arg2)
extractNameplateSettings(Entity arg0, EntityRenderState arg1, float arg2)
public void
extractRenderState(Entity entity, EntityRenderState state, float partialTicks)
method_62354(class_1297 arg0, class_10017 arg1, float arg2)
updateRenderState(Entity arg0, EntityRenderState arg1, float arg2)
protected float
getShadowRadius(EntityRenderState state)
method_55831(class_10017 arg0)
getShadowRadius(EntityRenderState arg0)
protected boolean
shouldShowName(Entity entity, double distanceToCameraSq)
method_3921(class_1297 arg0, double arg1)
hasLabel(Entity arg0, double arg1)
public void
submit(EntityRenderState state, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, CameraRenderState camera)
method_3936(class_10017 arg0, class_4587 arg1, class_11659 arg2, class_12075 arg3)
render(EntityRenderState arg0, MatrixStack arg1, OrderedRenderCommandQueue arg2, CameraRenderState arg3)
protected Box
getBoundingBoxForCulling(Entity entity)
method_62358(class_1297 arg0)
getBoundingBox(Entity arg0)