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 |
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).
|
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() |
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_) |
boolean |
shouldRender(T livingEntity,
ICamera camera,
double camX,
double camY,
double camZ) |
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)
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()