public class ElytraLayer<T extends LivingEntity,M extends EntityModel<T>> extends LayerRenderer<T,M>
Modifier and Type | Field and Description |
---|---|
private ElytraModel<T> |
modelElytra |
private static ResourceLocation |
TEXTURE_ELYTRA |
Constructor and Description |
---|
ElytraLayer(IEntityRenderer<T,M> rendererIn) |
Modifier and Type | Method and Description |
---|---|
ResourceLocation |
getElytraTexture(ItemStack stack,
T entity)
Gets the texture to use with this ElytraLayer.
|
void |
render(MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
int packedLightIn,
T entitylivingbaseIn,
float limbSwing,
float limbSwingAmount,
float partialTicks,
float ageInTicks,
float netHeadYaw,
float headPitch) |
boolean |
shouldRender(ItemStack stack,
T entity)
Determines if the ElytraLayer should render.
|
getEntityModel, getEntityTexture, renderCopyCutoutModel, renderCutoutModel
private static final ResourceLocation TEXTURE_ELYTRA
private final ElytraModel<T extends LivingEntity> modelElytra
public ElytraLayer(IEntityRenderer<T,M> rendererIn)
public void render(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn, T entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch)
render
in class LayerRenderer<T extends LivingEntity,M extends EntityModel<T>>
public boolean shouldRender(ItemStack stack, T entity)
stack
- The Elytra ItemStackentity
- The entity being rendered.public ResourceLocation getElytraTexture(ItemStack stack, T entity)
stack
- The Elytra ItemStack.entity
- The entity being rendered.