public abstract class EntityRenderer<T extends Entity>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected EntityRendererManager |
renderManager |
protected boolean |
renderOutlines |
protected float |
shadowOpaque |
protected float |
shadowSize |
Modifier | Constructor and Description |
---|---|
protected |
EntityRenderer(EntityRendererManager 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) |
void |
func_217758_e(T p_217758_1_) |
protected abstract ResourceLocation |
getEntityTexture(T entity) |
FontRenderer |
getFontRendererFromRenderManager() |
EntityRendererManager |
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 entityIn,
double x,
double y,
double z,
float entityYaw,
float partialTicks) |
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 EntityRendererManager renderManager
protected float shadowSize
protected float shadowOpaque
protected boolean renderOutlines
protected EntityRenderer(EntityRendererManager 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 EntityRendererManager getRenderManager()
public boolean isMultipass()
public void renderMultipass(T entityIn, double x, double y, double z, float entityYaw, float partialTicks)
public void func_217758_e(T p_217758_1_)