Class LivingRenderer<T extends LivingEntity,M extends EntityModel<T>>
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingRenderer<T,M>
- All Implemented Interfaces:
IEntityRenderer<T,
M>
- Direct Known Subclasses:
ArmorStandRenderer
,MobRenderer
,PlayerRenderer
public abstract class LivingRenderer<T extends LivingEntity,M extends EntityModel<T>>
extends EntityRenderer<T>
implements IEntityRenderer<T,M>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<LayerRenderer<T,
M>> private static final org.apache.logging.log4j.Logger
protected M
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, shadowRadius, shadowStrength
-
Constructor Summary
ConstructorDescriptionLivingRenderer
(EntityRendererManager p_i50965_1_, M p_i50965_2_, float p_i50965_3_) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
addLayer
(LayerRenderer<T, M> p_177094_1_) protected float
getAttackAnim
(T p_77040_1_, float p_77040_2_) protected float
protected float
getFlipDegrees
(T p_77037_1_) getModel()
static int
getOverlayCoords
(LivingEntity p_229117_0_, float p_229117_1_) protected RenderType
getRenderType
(T p_230496_1_, boolean p_230496_2_, boolean p_230496_3_, boolean p_230496_4_) protected float
getWhiteOverlayProgress
(T p_225625_1_, float p_225625_2_) protected boolean
isBodyVisible
(T p_225622_1_) protected boolean
void
render
(T p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_) protected void
scale
(T p_225620_1_, MatrixStack p_225620_2_, float p_225620_3_) protected void
setupRotations
(T p_225621_1_, MatrixStack p_225621_2_, float p_225621_3_, float p_225621_4_, float p_225621_5_) protected boolean
shouldShowName
(T p_177070_1_) private static float
sleepDirectionToRotation
(Direction p_217765_0_) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getDispatcher, 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.IEntityRenderer
getTextureLocation
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
model
-
layers
-
-
Constructor Details
-
LivingRenderer
-
-
Method Details
-
addLayer
-
getModel
- Specified by:
getModel
in interfaceIEntityRenderer<T extends LivingEntity,
M extends EntityModel<T>>
-
render
public void render(T p_225623_1_, float p_225623_2_, float p_225623_3_, MatrixStack p_225623_4_, IRenderTypeBuffer p_225623_5_, int p_225623_6_) - Overrides:
render
in classEntityRenderer<T extends LivingEntity>
-
getRenderType
@Nullable protected RenderType getRenderType(T p_230496_1_, boolean p_230496_2_, boolean p_230496_3_, boolean p_230496_4_) -
getOverlayCoords
-
isBodyVisible
-
sleepDirectionToRotation
-
isShaking
-
setupRotations
protected void setupRotations(T p_225621_1_, MatrixStack p_225621_2_, float p_225621_3_, float p_225621_4_, float p_225621_5_) -
getAttackAnim
-
getBob
-
getFlipDegrees
-
getWhiteOverlayProgress
-
scale
-
shouldShowName
- Overrides:
shouldShowName
in classEntityRenderer<T extends LivingEntity>
-