Class Render<T extends Entity>
- java.lang.Object
-
- net.minecraft.client.renderer.entity.Render<T>
-
- Direct Known Subclasses:
RenderArrow
,RenderBoat
,RenderEnderCrystal
,RenderEntity
,RenderEntityItem
,RendererLivingEntity
,RenderFallingBlock
,RenderFireball
,RenderFish
,RenderItemFrame
,RenderLeashKnot
,RenderLightningBolt
,RenderMinecart
,RenderPainting
,RenderSnowball
,RenderTNTPrimed
,RenderWitherSkull
,RenderXPOrb
public abstract class Render<T extends Entity> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected RenderManager
renderManager
protected float
shadowOpaque
+ Determines the darkness of the object's shadow.protected float
shadowSize
-
Constructor Summary
Constructors Modifier Constructor Description protected
Render(RenderManager renderManager)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
bindEntityTexture(T entity)
void
bindTexture(ResourceLocation location)
protected boolean
canRenderName(T entity)
void
doRender(T entity, double d0, double d1, double d2, float var8, float var9)
+ Actually renders the given argument.void
doRenderShadowAndFire(Entity entityIn, double x, double y, double z, float yaw, float partialTicks)
+ Renders the entity's shadow and fire (if its on fire).protected abstract ResourceLocation
getEntityTexture(T var1)
FontRenderer
getFontRendererFromRenderManager()
+ Returns the font renderer from the set render managerRenderManager
getRenderManager()
protected void
renderLivingLabel(T entityIn, java.lang.String str, double x, double y, double z, int maxDistance)
+ Renders an entity's name above its headprotected void
renderName(T entity, double x, double y, double z)
static void
renderOffsetAABB(AxisAlignedBB boundingBox, double x, double y, double z)
+ Renders a white box with the bounds of the AABB translated by the offset.protected void
renderOffsetLivingLabel(T entityIn, double x, double y, double z, java.lang.String str, float parFloat1, double parDouble4)
boolean
shouldRender(T livingEntity, ICamera camera, double camX, double camY, double camZ)
-
-
-
Field Detail
-
renderManager
protected final RenderManager renderManager
-
shadowSize
protected float shadowSize
-
shadowOpaque
protected float shadowOpaque
+ Determines the darkness of the object's shadow. Higher value makes a darker shadow.
-
-
Constructor Detail
-
Render
protected Render(RenderManager renderManager)
-
-
Method Detail
-
shouldRender
public boolean shouldRender(T livingEntity, ICamera camera, double camX, double camY, double camZ)
-
doRender
public void doRender(T entity, double d0, double d1, double d2, float var8, float var9)
+ 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
-
renderName
protected void renderName(T entity, double x, double y, double z)
-
canRenderName
protected boolean canRenderName(T entity)
-
renderOffsetLivingLabel
protected void renderOffsetLivingLabel(T entityIn, double x, double y, double z, java.lang.String str, float parFloat1, double parDouble4)
-
getEntityTexture
protected abstract ResourceLocation getEntityTexture(T var1)
-
bindEntityTexture
protected boolean bindEntityTexture(T entity)
-
bindTexture
public void bindTexture(ResourceLocation location)
-
renderOffsetAABB
public static void renderOffsetAABB(AxisAlignedBB boundingBox, double x, double y, double z)
+ Renders a white box with the bounds of the AABB translated by the offset. Args: aabb, x, y, z
-
doRenderShadowAndFire
public void doRenderShadowAndFire(Entity entityIn, double x, double y, double z, float yaw, float partialTicks)
+ Renders the entity's shadow and fire (if its on fire). Args: entity, x, y, z, yaw, partialTickTime
-
getFontRendererFromRenderManager
public FontRenderer getFontRendererFromRenderManager()
+ Returns the font renderer from the set render manager
-
renderLivingLabel
protected void renderLivingLabel(T entityIn, java.lang.String str, double x, double y, double z, int maxDistance)
+ Renders an entity's name above its head
-
getRenderManager
public RenderManager getRenderManager()
-
-