public abstract class Render<T extends Entity>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected RenderManager |
renderManager |
protected boolean |
renderOutlines |
protected float |
shadowOpaque |
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) |
void |
doRenderShadowAndFire(Entity entityIn,
double x,
double y,
double z,
float yaw,
float partialTicks) |
protected abstract ResourceLocation |
getEntityTexture(T entity) |
FontRenderer |
getFontRendererFromRenderManager() |
RenderManager |
getRenderManager() |
protected int |
getTeamColor(T entityIn) |
boolean |
isMultipass() |
protected void |
renderEntityName(T entityIn,
double x,
double y,
double z,
java.lang.String name,
double distanceSq) |
protected void |
renderLivingLabel(T entityIn,
java.lang.String str,
double x,
double y,
double z,
int maxDistance) |
void |
renderMultipass(T p_188300_1_,
double p_188300_2_,
double p_188300_4_,
double p_188300_6_,
float p_188300_8_,
float p_188300_9_) |
protected void |
renderName(T entity,
double x,
double y,
double z) |
static void |
renderOffsetAABB(AxisAlignedBB boundingBox,
double x,
double y,
double z) |
void |
setRenderOutlines(boolean renderOutlinesIn) |
boolean |
shouldRender(T livingEntity,
ICamera camera,
double camX,
double camY,
double camZ) |
protected final RenderManager renderManager
protected float shadowSize
protected float shadowOpaque
protected boolean renderOutlines
protected Render(RenderManager renderManager)
public void setRenderOutlines(boolean renderOutlinesIn)
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 int getTeamColor(T entityIn)
protected void renderName(T entity, double x, double y, double z)
protected boolean canRenderName(T entity)
protected void renderEntityName(T entityIn, double x, double y, double z, java.lang.String name, double distanceSq)
@Nullable 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()
public boolean isMultipass()
public void renderMultipass(T p_188300_1_, double p_188300_2_, double p_188300_4_, double p_188300_6_, float p_188300_8_, float p_188300_9_)