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
Fields Modifier and Type Field Description protected java.util.List<LayerRenderer<T,M>>
layers
private static org.apache.logging.log4j.Logger
LOGGER
protected M
model
-
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, shadowRadius, shadowStrength
-
-
Constructor Summary
Constructors Constructor Description LivingRenderer(EntityRendererManager p_i50965_1_, M p_i50965_2_, float p_i50965_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addLayer(LayerRenderer<T,M> p_177094_1_)
protected float
getAttackAnim(T p_77040_1_, float p_77040_2_)
protected float
getBob(T p_77044_1_, float p_77044_2_)
protected float
getFlipDegrees(T p_77037_1_)
M
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
isShaking(T p_230495_1_)
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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
model
protected M extends EntityModel<T> model
-
layers
protected final java.util.List<LayerRenderer<T extends LivingEntity,M extends EntityModel<T>>> layers
-
-
Constructor Detail
-
LivingRenderer
public LivingRenderer(EntityRendererManager p_i50965_1_, M p_i50965_2_, float p_i50965_3_)
-
-
Method Detail
-
addLayer
public final boolean addLayer(LayerRenderer<T,M> p_177094_1_)
-
getModel
public M 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
public static int getOverlayCoords(LivingEntity p_229117_0_, float p_229117_1_)
-
isBodyVisible
protected boolean isBodyVisible(T p_225622_1_)
-
sleepDirectionToRotation
private static float sleepDirectionToRotation(Direction p_217765_0_)
-
isShaking
protected boolean isShaking(T p_230495_1_)
-
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
protected float getAttackAnim(T p_77040_1_, float p_77040_2_)
-
getBob
protected float getBob(T p_77044_1_, float p_77044_2_)
-
getFlipDegrees
protected float getFlipDegrees(T p_77037_1_)
-
getWhiteOverlayProgress
protected float getWhiteOverlayProgress(T p_225625_1_, float p_225625_2_)
-
scale
protected void scale(T p_225620_1_, MatrixStack p_225620_2_, float p_225620_3_)
-
shouldShowName
protected boolean shouldShowName(T p_177070_1_)
- Overrides:
shouldShowName
in classEntityRenderer<T extends LivingEntity>
-
-