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 java.nio.FloatBuffer |
brightnessBuffer |
protected M |
entityModel |
protected java.util.List<LayerRenderer<T,M>> |
layerRenderers |
protected boolean |
renderMarker |
renderManager, renderOutlines, shadowOpaque, shadowSize
Constructor and Description |
---|
LivingRenderer(EntityRendererManager p_i50965_1_,
M p_i50965_2_,
float p_i50965_3_) |
Modifier and Type | Method and Description |
---|---|
boolean |
addLayer(LayerRenderer<T,M> layer) |
protected void |
applyRotations(T entityLiving,
float ageInTicks,
float rotationYaw,
float partialTicks) |
protected boolean |
canRenderName(T entity) |
void |
doRender(T entity,
double x,
double y,
double z,
float entityYaw,
float partialTicks) |
protected int |
getColorMultiplier(T entitylivingbaseIn,
float lightBrightness,
float partialTickTime) |
protected float |
getDeathMaxRotation(T entityLivingBaseIn) |
M |
getEntityModel() |
protected float |
getSwingProgress(T livingBase,
float partialTickTime) |
protected float |
handleRotationFloat(T livingBase,
float partialTicks) |
protected boolean |
isVisible(T p_193115_1_) |
float |
prepareScale(T entitylivingbaseIn,
float partialTicks) |
protected void |
preRenderCallback(T entitylivingbaseIn,
float partialTickTime) |
protected void |
renderLayers(T entitylivingbaseIn,
float limbSwing,
float limbSwingAmount,
float partialTicks,
float ageInTicks,
float netHeadYaw,
float headPitch,
float scaleIn) |
protected void |
renderLivingAt(T entityLivingBaseIn,
double x,
double y,
double z) |
protected void |
renderModel(T entitylivingbaseIn,
float limbSwing,
float limbSwingAmount,
float ageInTicks,
float netHeadYaw,
float headPitch,
float scaleFactor) |
void |
renderName(T entity,
double x,
double y,
double z) |
protected boolean |
setBrightness(T entitylivingbaseIn,
float partialTicks,
boolean combineTextures) |
protected boolean |
setDoRenderBrightness(T entityLivingBaseIn,
float partialTicks) |
protected boolean |
setScoreTeamColor(T entityLivingBaseIn) |
protected void |
unsetBrightness() |
protected void |
unsetScoreTeamColor() |
bindEntityTexture, bindTexture, doRenderShadowAndFire, func_217758_e, getEntityTexture, getFontRendererFromRenderManager, getRenderManager, getTeamColor, isMultipass, renderEntityName, renderLivingLabel, renderMultipass, renderOffsetAABB, setRenderOutlines, shouldRender
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bindTexture, func_217758_e
protected M extends EntityModel<T> entityModel
protected final java.nio.FloatBuffer brightnessBuffer
protected final java.util.List<LayerRenderer<T extends LivingEntity,M extends EntityModel<T>>> layerRenderers
protected boolean renderMarker
public LivingRenderer(EntityRendererManager p_i50965_1_, M p_i50965_2_, float p_i50965_3_)
public final boolean addLayer(LayerRenderer<T,M> layer)
public M getEntityModel()
getEntityModel
in interface IEntityRenderer<T extends LivingEntity,M extends EntityModel<T>>
public void doRender(T entity, double x, double y, double z, float entityYaw, float partialTicks)
doRender
in class EntityRenderer<T extends LivingEntity>
public float prepareScale(T entitylivingbaseIn, float partialTicks)
protected boolean setScoreTeamColor(T entityLivingBaseIn)
protected void unsetScoreTeamColor()
protected void renderModel(T entitylivingbaseIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor)
protected boolean isVisible(T p_193115_1_)
protected boolean setDoRenderBrightness(T entityLivingBaseIn, float partialTicks)
protected boolean setBrightness(T entitylivingbaseIn, float partialTicks, boolean combineTextures)
protected void unsetBrightness()
protected void renderLivingAt(T entityLivingBaseIn, double x, double y, double z)
protected void applyRotations(T entityLiving, float ageInTicks, float rotationYaw, float partialTicks)
protected float getSwingProgress(T livingBase, float partialTickTime)
protected float handleRotationFloat(T livingBase, float partialTicks)
protected void renderLayers(T entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scaleIn)
protected float getDeathMaxRotation(T entityLivingBaseIn)
protected int getColorMultiplier(T entitylivingbaseIn, float lightBrightness, float partialTickTime)
protected void preRenderCallback(T entitylivingbaseIn, float partialTickTime)
public void renderName(T entity, double x, double y, double z)
renderName
in class EntityRenderer<T extends LivingEntity>
protected boolean canRenderName(T entity)
canRenderName
in class EntityRenderer<T extends LivingEntity>