public static class CustomElytraTest.CustomElytraLayer extends ElytraLayer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>>
Modifier and Type | Field and Description |
---|---|
private static ResourceLocation |
TEXTURE_ELYTRA |
Constructor and Description |
---|
CustomElytraLayer(IEntityRenderer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>> rendererIn) |
Modifier and Type | Method and Description |
---|---|
ResourceLocation |
getElytraTexture(ItemStack stack,
AbstractClientPlayerEntity entity)
Gets the texture to use with this ElytraLayer.
|
boolean |
shouldRender(ItemStack stack,
AbstractClientPlayerEntity entity)
Determines if the ElytraLayer should render.
|
render
getEntityModel, getEntityTexture, renderCopyCutoutModel, renderCutoutModel
private static final ResourceLocation TEXTURE_ELYTRA
public CustomElytraLayer(IEntityRenderer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>> rendererIn)
public boolean shouldRender(ItemStack stack, AbstractClientPlayerEntity entity)
ElytraLayer
shouldRender
in class ElytraLayer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>>
stack
- The Elytra ItemStackentity
- The entity being rendered.public ResourceLocation getElytraTexture(ItemStack stack, AbstractClientPlayerEntity entity)
ElytraLayer
getElytraTexture
in class ElytraLayer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>>
stack
- The Elytra ItemStack.entity
- The entity being rendered.