public abstract class Render<T extends Entity>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected RenderManager |
renderManager |
protected boolean |
renderOutlines |
private static ResourceLocation |
SHADOW_TEXTURES |
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) |
private World |
getWorldFromRenderManager() |
boolean |
isMultipass() |
protected void |
renderEntityName(T entityIn,
double x,
double y,
double z,
java.lang.String name,
double distanceSq) |
private void |
renderEntityOnFire(Entity entity,
double x,
double y,
double z,
float partialTicks) |
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) |
private void |
renderShadow(Entity entityIn,
double x,
double y,
double z,
float shadowAlpha,
float partialTicks) |
private void |
renderShadowSingle(IBlockState state,
double p_188299_2_,
double p_188299_4_,
double p_188299_6_,
BlockPos p_188299_8_,
float p_188299_9_,
float p_188299_10_,
double p_188299_11_,
double p_188299_13_,
double p_188299_15_) |
void |
setRenderOutlines(boolean renderOutlinesIn) |
boolean |
shouldRender(T livingEntity,
ICamera camera,
double camX,
double camY,
double camZ) |
private static final ResourceLocation SHADOW_TEXTURES
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)
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 renderShadowSingle(IBlockState state, double p_188299_2_, double p_188299_4_, double p_188299_6_, BlockPos p_188299_8_, float p_188299_9_, float p_188299_10_, double p_188299_11_, double p_188299_13_, double p_188299_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()
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_)