Package net.minecraftforge.debug.item
Class CustomElytraTest.CustomElytraLayer
- java.lang.Object
-
- net.minecraft.client.renderer.entity.layers.LayerRenderer<T,M>
-
- net.minecraft.client.renderer.entity.layers.ElytraLayer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>>
-
- net.minecraftforge.debug.item.CustomElytraTest.CustomElytraLayer
-
- Enclosing class:
- CustomElytraTest
public static class CustomElytraTest.CustomElytraLayer extends ElytraLayer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>>
-
-
Field Summary
Fields Modifier and Type Field Description private static ResourceLocation
TEXTURE_ELYTRA
-
Constructor Summary
Constructors Constructor Description CustomElytraLayer(IEntityRenderer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>> rendererIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class net.minecraft.client.renderer.entity.layers.ElytraLayer
render
-
Methods inherited from class net.minecraft.client.renderer.entity.layers.LayerRenderer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
-
-
-
Field Detail
-
TEXTURE_ELYTRA
private static final ResourceLocation TEXTURE_ELYTRA
-
-
Constructor Detail
-
CustomElytraLayer
public CustomElytraLayer(IEntityRenderer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>> rendererIn)
-
-
Method Detail
-
shouldRender
public boolean shouldRender(ItemStack stack, AbstractClientPlayerEntity entity)
Description copied from class:ElytraLayer
Determines if the ElytraLayer should render. ItemStack and Entity are provided for modder convenience, For example, using the same ElytraLayer for multiple custom Elytra.- Overrides:
shouldRender
in classElytraLayer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>>
- Parameters:
stack
- The Elytra ItemStackentity
- The entity being rendered.- Returns:
- If the ElytraLayer should render.
-
getElytraTexture
public ResourceLocation getElytraTexture(ItemStack stack, AbstractClientPlayerEntity entity)
Description copied from class:ElytraLayer
Gets the texture to use with this ElytraLayer. This assumes the vanilla Elytra model.- Overrides:
getElytraTexture
in classElytraLayer<AbstractClientPlayerEntity,PlayerModel<AbstractClientPlayerEntity>>
- Parameters:
stack
- The Elytra ItemStack.entity
- The entity being rendered.- Returns:
- The texture.
-
-