Class RendererLivingEntity<T extends EntityLivingBase>
- java.lang.Object
-
- net.minecraft.client.renderer.entity.Render<T>
-
- net.minecraft.client.renderer.entity.RendererLivingEntity<T>
-
- Direct Known Subclasses:
ArmorStandRenderer
,RenderLiving
,RenderPlayer
public abstract class RendererLivingEntity<T extends EntityLivingBase> extends Render<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected FloatBuffer
brightnessBuffer
protected java.util.List<LayerRenderer<T>>
layerRenderers
protected ModelBase
mainModel
protected boolean
renderOutlines
-
Fields inherited from class net.minecraft.client.renderer.entity.Render
renderManager, shadowOpaque, shadowSize
-
-
Constructor Summary
Constructors Constructor Description RendererLivingEntity(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <V extends EntityLivingBase,U extends LayerRenderer<V>>
booleanaddLayer(U layer)
protected boolean
canRenderName(T entitylivingbase)
void
doRender(T entitylivingbase, double d0, double d1, double d2, float f, float f1)
+ Actually renders the given argument.protected int
getColorMultiplier(T var1, float var2, float var3)
+ Returns an ARGB int color back.protected float
getDeathMaxRotation(T var1)
ModelBase
getMainModel()
protected float
getSwingProgress(T livingBase, float partialTickTime)
+ Returns where in the swing animation the living entity is (from 0 to 1).protected float
handleRotationFloat(T entitylivingbase, float f)
+ Defines what float the third param in setRotationAngles of ModelBase isprotected float
interpolateRotation(float par1, float par2, float par3)
+ Returns a rotation angle that is inbetween two other rotation angles.protected void
preRenderCallback(T var1, float var2)
+ Allows the render to do any OpenGL state modifications necessary before the model is rendered.protected <V extends EntityLivingBase,U extends LayerRenderer<V>>
booleanremoveLayer(U layer)
protected void
renderLayers(T entitylivingbaseIn, float partialTicks, float parFloat2, float parFloat3, float parFloat4, float parFloat5, float parFloat6, float parFloat7)
protected void
renderLivingAt(T entityLivingBaseIn, double x, double y, double z)
+ Sets a simple glTranslate on a LivingEntity.protected void
renderModel(T entitylivingbase, float f, float f1, float f2, float f3, float f4, float f5)
+ Renders the model in RenderLivingvoid
renderName(T entitylivingbase, double d0, double d1, double d2)
protected void
rotateCorpse(T entitylivingbase, float var2, float f, float f1)
protected boolean
setBrightness(T entitylivingbaseIn, float partialTicks, boolean combineTextures)
protected boolean
setDoRenderBrightness(T entityLivingBaseIn, float partialTicks)
void
setRenderOutlines(boolean renderOutlinesIn)
protected boolean
setScoreTeamColor(T entityLivingBaseIn)
void
transformHeldFull3DItemLayer()
protected void
unsetBrightness()
protected void
unsetScoreTeamColor()
-
Methods inherited from class net.minecraft.client.renderer.entity.Render
bindEntityTexture, bindTexture, doRenderShadowAndFire, getEntityTexture, getFontRendererFromRenderManager, getRenderManager, renderLivingLabel, renderOffsetAABB, renderOffsetLivingLabel, shouldRender
-
-
-
-
Field Detail
-
mainModel
protected ModelBase mainModel
-
brightnessBuffer
protected FloatBuffer brightnessBuffer
-
layerRenderers
protected java.util.List<LayerRenderer<T extends EntityLivingBase>> layerRenderers
-
renderOutlines
protected boolean renderOutlines
-
-
Constructor Detail
-
RendererLivingEntity
public RendererLivingEntity(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn)
-
-
Method Detail
-
addLayer
protected <V extends EntityLivingBase,U extends LayerRenderer<V>> boolean addLayer(U layer)
-
removeLayer
protected <V extends EntityLivingBase,U extends LayerRenderer<V>> boolean removeLayer(U layer)
-
getMainModel
public ModelBase getMainModel()
-
interpolateRotation
protected float interpolateRotation(float par1, float par2, float par3)
+ Returns a rotation angle that is inbetween two other rotation angles. par1 and par2 are the angles between which to interpolate, par3 is probably a float between 0.0 and 1.0 that tells us where "between" the two angles we are. Example: par1 = 30, par2 = 50, par3 = 0.5, then return = 40
-
transformHeldFull3DItemLayer
public void transformHeldFull3DItemLayer()
-
doRender
public void doRender(T entitylivingbase, double d0, double d1, double d2, float f, float f1)
+ Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic (Render) and this method has signature public void func_76986_a(T entity, double d, double d1, double d2, float f, float f1). But JAD is pre 1.5 so doe - Overrides:
doRender
in classRender<T extends EntityLivingBase>
-
setScoreTeamColor
protected boolean setScoreTeamColor(T entityLivingBaseIn)
-
unsetScoreTeamColor
protected void unsetScoreTeamColor()
-
renderModel
protected void renderModel(T entitylivingbase, float f, float f1, float f2, float f3, float f4, float f5)
+ Renders the model in RenderLiving
-
setDoRenderBrightness
protected boolean setDoRenderBrightness(T entityLivingBaseIn, float partialTicks)
-
setBrightness
protected boolean setBrightness(T entitylivingbaseIn, float partialTicks, boolean combineTextures)
-
unsetBrightness
protected void unsetBrightness()
-
renderLivingAt
protected void renderLivingAt(T entityLivingBaseIn, double x, double y, double z)
+ Sets a simple glTranslate on a LivingEntity.
-
rotateCorpse
protected void rotateCorpse(T entitylivingbase, float var2, float f, float f1)
-
getSwingProgress
protected float getSwingProgress(T livingBase, float partialTickTime)
+ Returns where in the swing animation the living entity is (from 0 to 1). Args : entity, partialTickTime
-
handleRotationFloat
protected float handleRotationFloat(T entitylivingbase, float f)
+ Defines what float the third param in setRotationAngles of ModelBase is
-
renderLayers
protected void renderLayers(T entitylivingbaseIn, float partialTicks, float parFloat2, float parFloat3, float parFloat4, float parFloat5, float parFloat6, float parFloat7)
-
getDeathMaxRotation
protected float getDeathMaxRotation(T var1)
-
getColorMultiplier
protected int getColorMultiplier(T var1, float var2, float var3)
+ Returns an ARGB int color back. Args: entityLiving, lightBrightness, partialTickTime
-
preRenderCallback
protected void preRenderCallback(T var1, float var2)
+ Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args: entityLiving, partialTickTime
-
renderName
public void renderName(T entitylivingbase, double d0, double d1, double d2)
- Overrides:
renderName
in classRender<T extends EntityLivingBase>
-
canRenderName
protected boolean canRenderName(T entitylivingbase)
- Overrides:
canRenderName
in classRender<T extends EntityLivingBase>
-
setRenderOutlines
public void setRenderOutlines(boolean renderOutlinesIn)
-
-