public abstract class Render<T extends Entity>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected RenderManager |
renderManager |
protected float |
shadowOpaque
Determines the darkness of the object's shadow.
|
protected float |
shadowSize |
private static ResourceLocation |
shadowTextures |
Modifier | Constructor and Description |
---|---|
protected |
Render(RenderManager renderManager) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
bindEntityTexture(T entity) |
void |
bindTexture(ResourceLocation location) |
protected boolean |
canRenderName(T entity) |
void |
doRender(T entity,
double x,
double y,
double z,
float entityYaw,
float partialTicks)
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).
|
private void |
func_180549_a(Block blockIn,
double p_180549_2_,
double p_180549_4_,
double p_180549_6_,
BlockPos pos,
float p_180549_9_,
float p_180549_10_,
double p_180549_11_,
double p_180549_13_,
double p_180549_15_) |
protected abstract ResourceLocation |
getEntityTexture(T entity)
Returns the location of an entity's texture.
|
FontRenderer |
getFontRendererFromRenderManager()
Returns the font renderer from the set render manager
|
RenderManager |
getRenderManager() |
private World |
getWorldFromRenderManager()
Returns the render manager's world object
|
private void |
renderEntityOnFire(Entity entity,
double x,
double y,
double z,
float partialTicks)
Renders fire on top of the entity.
|
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
|
protected 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 p_177069_9_,
double p_177069_10_) |
private void |
renderShadow(Entity entityIn,
double x,
double y,
double z,
float shadowAlpha,
float partialTicks)
Renders the entity shadows at the position, shadow alpha and partialTickTime.
|
boolean |
shouldRender(T livingEntity,
ICamera camera,
double camX,
double camY,
double camZ) |
private static final ResourceLocation shadowTextures
protected final RenderManager renderManager
protected float shadowSize
protected float shadowOpaque
protected Render(RenderManager renderManager)
public boolean shouldRender(T livingEntity, ICamera camera, double camX, double camY, double camZ)
public void doRender(T entity, double x, double y, double z, float entityYaw, float partialTicks)
protected void renderName(T entity, double x, double y, double z)
protected boolean canRenderName(T entity)
protected void renderOffsetLivingLabel(T entityIn, double x, double y, double z, java.lang.String str, float p_177069_9_, double p_177069_10_)
protected abstract ResourceLocation getEntityTexture(T entity)
protected boolean bindEntityTexture(T entity)
public void bindTexture(ResourceLocation location)
private void renderEntityOnFire(Entity entity, double x, double y, double z, float partialTicks)
private void renderShadow(Entity entityIn, double x, double y, double z, float shadowAlpha, float partialTicks)
private World getWorldFromRenderManager()
private void func_180549_a(Block blockIn, double p_180549_2_, double p_180549_4_, double p_180549_6_, BlockPos pos, float p_180549_9_, float p_180549_10_, double p_180549_11_, double p_180549_13_, double p_180549_15_)
public static void renderOffsetAABB(AxisAlignedBB boundingBox, double x, double y, double z)
public void doRenderShadowAndFire(Entity entityIn, double x, double y, double z, float yaw, float partialTicks)
public FontRenderer getFontRendererFromRenderManager()
protected void renderLivingLabel(T entityIn, java.lang.String str, double x, double y, double z, int maxDistance)
public RenderManager getRenderManager()