public abstract class LivingRenderer<T extends LivingEntity,M extends EntityModel<T>> extends EntityRenderer<T> implements IEntityRenderer<T,M>
Modifier and Type | Field and Description |
---|---|
protected M |
entityModel |
protected java.util.List<LayerRenderer<T,M>> |
layerRenderers |
private static org.apache.logging.log4j.Logger |
LOGGER |
renderManager, shadowOpaque, shadowSize
Constructor and Description |
---|
LivingRenderer(EntityRendererManager rendererManager,
M entityModelIn,
float shadowSizeIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
addLayer(LayerRenderer<T,M> layer) |
protected void |
applyRotations(T entityLiving,
MatrixStack matrixStackIn,
float ageInTicks,
float rotationYaw,
float partialTicks) |
protected boolean |
canRenderName(T entity) |
protected RenderType |
func_230042_a_(T p_230042_1_,
boolean p_230042_2_,
boolean p_230042_3_) |
protected float |
getDeathMaxRotation(T entityLivingBaseIn) |
M |
getEntityModel() |
private static float |
getFacingAngle(Direction facingIn) |
protected float |
getOverlayProgress(T livingEntityIn,
float partialTicks) |
static int |
getPackedOverlay(LivingEntity livingEntityIn,
float uIn) |
protected float |
getSwingProgress(T livingBase,
float partialTickTime) |
protected float |
handleRotationFloat(T livingBase,
float partialTicks) |
protected boolean |
isVisible(T livingEntityIn) |
protected void |
preRenderCallback(T entitylivingbaseIn,
MatrixStack matrixStackIn,
float partialTickTime) |
void |
render(T entityIn,
float entityYaw,
float partialTicks,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn) |
getBlockLight, getEntityTexture, getFontRendererFromRenderManager, getPackedLight, getRenderManager, getRenderOffset, renderName, shouldRender
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityTexture
private static final org.apache.logging.log4j.Logger LOGGER
protected M extends EntityModel<T> entityModel
protected final java.util.List<LayerRenderer<T extends LivingEntity,M extends EntityModel<T>>> layerRenderers
public LivingRenderer(EntityRendererManager rendererManager, M entityModelIn, float shadowSizeIn)
public final boolean addLayer(LayerRenderer<T,M> layer)
public M getEntityModel()
getEntityModel
in interface IEntityRenderer<T extends LivingEntity,M extends EntityModel<T>>
public void render(T entityIn, float entityYaw, float partialTicks, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn)
render
in class EntityRenderer<T extends LivingEntity>
@Nullable protected RenderType func_230042_a_(T p_230042_1_, boolean p_230042_2_, boolean p_230042_3_)
public static int getPackedOverlay(LivingEntity livingEntityIn, float uIn)
protected boolean isVisible(T livingEntityIn)
private static float getFacingAngle(Direction facingIn)
protected void applyRotations(T entityLiving, MatrixStack matrixStackIn, float ageInTicks, float rotationYaw, float partialTicks)
protected float getSwingProgress(T livingBase, float partialTickTime)
protected float handleRotationFloat(T livingBase, float partialTicks)
protected float getDeathMaxRotation(T entityLivingBaseIn)
protected float getOverlayProgress(T livingEntityIn, float partialTicks)
protected void preRenderCallback(T entitylivingbaseIn, MatrixStack matrixStackIn, float partialTickTime)
protected boolean canRenderName(T entity)
canRenderName
in class EntityRenderer<T extends LivingEntity>