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
-
Constructor Summary
ConstructorDescriptionCustomElytraLayer
(IEntityRenderer<AbstractClientPlayerEntity, PlayerModel<AbstractClientPlayerEntity>> rendererIn) -
Method Summary
Modifier and TypeMethodDescriptiongetElytraTexture
(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 Details
-
TEXTURE_ELYTRA
-
-
Constructor Details
-
CustomElytraLayer
public CustomElytraLayer(IEntityRenderer<AbstractClientPlayerEntity, PlayerModel<AbstractClientPlayerEntity>> rendererIn)
-
-
Method Details
-
shouldRender
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
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.
-