public abstract class LayerRenderer<T extends Entity,M extends EntityModel<T>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private IEntityRenderer<T,M> |
entityRenderer |
Constructor and Description |
---|
LayerRenderer(IEntityRenderer<T,M> entityRendererIn) |
Modifier and Type | Method and Description |
---|---|
M |
getEntityModel() |
protected ResourceLocation |
getEntityTexture(T entityIn) |
abstract void |
render(MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn,
T entitylivingbaseIn,
float limbSwing,
float limbSwingAmount,
float partialTicks,
float ageInTicks,
float netHeadYaw,
float headPitch) |
protected static <T extends LivingEntity> |
renderCopyCutoutModel(EntityModel<T> modelParentIn,
EntityModel<T> modelIn,
ResourceLocation textureLocationIn,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn,
T entityIn,
float limbSwing,
float limbSwingAmount,
float ageInTicks,
float netHeadYaw,
float headPitch,
float partialTicks,
float red,
float green,
float blue) |
protected static <T extends LivingEntity> |
renderCutoutModel(EntityModel<T> modelIn,
ResourceLocation textureLocationIn,
MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn,
T entityIn,
float red,
float green,
float blue) |
private final IEntityRenderer<T extends Entity,M extends EntityModel<T>> entityRenderer
public LayerRenderer(IEntityRenderer<T,M> entityRendererIn)
protected static <T extends LivingEntity> void renderCopyCutoutModel(EntityModel<T> modelParentIn, EntityModel<T> modelIn, ResourceLocation textureLocationIn, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn, T entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float partialTicks, float red, float green, float blue)
protected static <T extends LivingEntity> void renderCutoutModel(EntityModel<T> modelIn, ResourceLocation textureLocationIn, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn, T entityIn, float red, float green, float blue)
public M getEntityModel()
protected ResourceLocation getEntityTexture(T entityIn)
public abstract void render(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn, T entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch)