public abstract class RenderLivingBase<T extends EntityLivingBase> extends Render<T>
Modifier and Type | Field and Description |
---|---|
protected java.nio.FloatBuffer |
brightnessBuffer |
protected java.util.List<LayerRenderer<T>> |
layerRenderers |
private static org.apache.logging.log4j.Logger |
LOGGER |
protected ModelBase |
mainModel |
static float |
NAME_TAG_RANGE |
static float |
NAME_TAG_RANGE_SNEAK |
protected boolean |
renderMarker |
private static DynamicTexture |
TEXTURE_BRIGHTNESS |
renderManager, renderOutlines, shadowOpaque, shadowSize
Constructor and Description |
---|
RenderLivingBase(RenderManager renderManagerIn,
ModelBase modelBaseIn,
float shadowSizeIn) |
Modifier and Type | Method and Description |
---|---|
<V extends EntityLivingBase,U extends LayerRenderer<V>> |
addLayer(U layer) |
protected void |
applyRotations(T entityLiving,
float p_77043_2_,
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) |
ModelBase |
getMainModel() |
protected float |
getSwingProgress(T livingBase,
float partialTickTime) |
protected float |
handleRotationFloat(T livingBase,
float partialTicks) |
protected float |
interpolateRotation(float prevYawOffset,
float yawOffset,
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) |
void |
transformHeldFull3DItemLayer() |
protected void |
unsetBrightness() |
protected void |
unsetScoreTeamColor() |
bindEntityTexture, bindTexture, doRenderShadowAndFire, getEntityTexture, getFontRendererFromRenderManager, getRenderManager, getTeamColor, isMultipass, renderEntityName, renderLivingLabel, renderMultipass, renderOffsetAABB, setRenderOutlines, shouldRender
private static final org.apache.logging.log4j.Logger LOGGER
private static final DynamicTexture TEXTURE_BRIGHTNESS
protected ModelBase mainModel
protected java.nio.FloatBuffer brightnessBuffer
protected java.util.List<LayerRenderer<T extends EntityLivingBase>> layerRenderers
protected boolean renderMarker
public static float NAME_TAG_RANGE
public static float NAME_TAG_RANGE_SNEAK
public RenderLivingBase(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn)
public <V extends EntityLivingBase,U extends LayerRenderer<V>> boolean addLayer(U layer)
public ModelBase getMainModel()
protected float interpolateRotation(float prevYawOffset, float yawOffset, float partialTicks)
public void transformHeldFull3DItemLayer()
public void doRender(T entity, double x, double y, double z, float entityYaw, float partialTicks)
doRender
in class Render<T extends EntityLivingBase>
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 p_77043_2_, 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 Render<T extends EntityLivingBase>
protected boolean canRenderName(T entity)
canRenderName
in class Render<T extends EntityLivingBase>