Class LivingEntityRenderer<T extends LivingEntity,M extends EntityModel<T>>
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M>
- All Implemented Interfaces:
RenderLayerParent<T,
M>
- Direct Known Subclasses:
ArmorStandRenderer
,EntityRendererEventsTest.EntityRenderEventsTestClientModStuff.MyEntityRenderer
,MobRenderer
,PlayerRenderer
public abstract class LivingEntityRenderer<T extends LivingEntity,M extends EntityModel<T>>
extends EntityRenderer<T>
implements RenderLayerParent<T,M>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final float
protected final List<RenderLayer<T,
M>> private static final org.slf4j.Logger
protected M
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
ConstructorDescriptionLivingEntityRenderer
(EntityRendererProvider.Context p_174289_, M p_174290_, float p_174291_) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
addLayer
(RenderLayer<T, M> p_115327_) protected float
getAttackAnim
(T p_115343_, float p_115344_) protected float
protected float
getFlipDegrees
(T p_115337_) getModel()
static int
getOverlayCoords
(LivingEntity p_115339_, float p_115340_) protected RenderType
getRenderType
(T p_115322_, boolean p_115323_, boolean p_115324_, boolean p_115325_) protected float
getWhiteOverlayProgress
(T p_115334_, float p_115335_) protected boolean
isBodyVisible
(T p_115341_) static boolean
isEntityUpsideDown
(LivingEntity p_194454_) protected boolean
void
render
(T p_115308_, float p_115309_, float p_115310_, PoseStack p_115311_, MultiBufferSource p_115312_, int p_115313_) protected void
protected void
setupRotations
(T p_115317_, PoseStack p_115318_, float p_115319_, float p_115320_, float p_115321_) protected boolean
shouldShowName
(T p_115333_) private static float
sleepDirectionToRotation
(Direction p_115329_) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, getTextureLocation, renderNameTag, shouldRender
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.renderer.entity.RenderLayerParent
getTextureLocation
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
EYE_BED_OFFSET
private static final float EYE_BED_OFFSET- See Also:
-
model
-
layers
-
-
Constructor Details
-
LivingEntityRenderer
-
-
Method Details
-
addLayer
-
getModel
- Specified by:
getModel
in interfaceRenderLayerParent<T extends LivingEntity,
M extends EntityModel<T>>
-
render
public void render(T p_115308_, float p_115309_, float p_115310_, PoseStack p_115311_, MultiBufferSource p_115312_, int p_115313_) - Overrides:
render
in classEntityRenderer<T extends LivingEntity>
-
getRenderType
@Nullable protected RenderType getRenderType(T p_115322_, boolean p_115323_, boolean p_115324_, boolean p_115325_) -
getOverlayCoords
-
isBodyVisible
-
sleepDirectionToRotation
-
isShaking
-
setupRotations
-
getAttackAnim
-
getBob
-
getFlipDegrees
-
getWhiteOverlayProgress
-
scale
-
shouldShowName
- Overrides:
shouldShowName
in classEntityRenderer<T extends LivingEntity>
-
isEntityUpsideDown
-