public abstract class EntityRenderer<T extends Entity>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected EntityRendererManager |
renderManager |
protected float |
shadowOpaque |
protected float |
shadowSize |
Modifier | Constructor and Description |
---|---|
protected |
EntityRenderer(EntityRendererManager renderManager) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canRenderName(T entity) |
protected int |
getBlockLight(T entityIn,
float partialTicks) |
abstract ResourceLocation |
getEntityTexture(T entity) |
FontRenderer |
getFontRendererFromRenderManager() |
int |
getPackedLight(T entityIn,
float partialTicks) |
EntityRendererManager |
getRenderManager() |
Vec3d |
getRenderOffset(T entityIn,
float partialTicks) |
void |
render(T entityIn,
float entityYaw,
float partialTicks,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn) |
protected void |
renderName(T entityIn,
java.lang.String displayNameIn,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn) |
boolean |
shouldRender(T livingEntityIn,
ClippingHelperImpl camera,
double camX,
double camY,
double camZ) |
protected final EntityRendererManager renderManager
protected float shadowSize
protected float shadowOpaque
protected EntityRenderer(EntityRendererManager renderManager)
public final int getPackedLight(T entityIn, float partialTicks)
protected int getBlockLight(T entityIn, float partialTicks)
public boolean shouldRender(T livingEntityIn, ClippingHelperImpl camera, double camX, double camY, double camZ)
public void render(T entityIn, float entityYaw, float partialTicks, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn)
protected boolean canRenderName(T entity)
public abstract ResourceLocation getEntityTexture(T entity)
public FontRenderer getFontRendererFromRenderManager()
protected void renderName(T entityIn, java.lang.String displayNameIn, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn)
public EntityRendererManager getRenderManager()