Package net.minecraftforge.debug.item
Class CustomElytraTest.CustomElytraLayer
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<T,M>
net.minecraft.client.renderer.entity.layers.ElytraLayer<AbstractClientPlayer,PlayerModel<AbstractClientPlayer>>
net.minecraftforge.debug.item.CustomElytraTest.CustomElytraLayer
- Enclosing class:
- CustomElytraTest
public static class CustomElytraTest.CustomElytraLayer
extends ElytraLayer<AbstractClientPlayer,PlayerModel<AbstractClientPlayer>>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCustomElytraLayer(RenderLayerParent<AbstractClientPlayer,PlayerModel<AbstractClientPlayer>> renderer, EntityModelSet modelSet)
-
Method Summary
Modifier and TypeMethodDescriptiongetElytraTexture(ItemStack stack, AbstractClientPlayer entity)
Gets the texture to use with this ElytraLayer.boolean
shouldRender(ItemStack stack, AbstractClientPlayer 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.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
Field Details
-
TEXTURE_ELYTRA
-
-
Constructor Details
-
CustomElytraLayer
public CustomElytraLayer(RenderLayerParent<AbstractClientPlayer,PlayerModel<AbstractClientPlayer>> renderer, EntityModelSet modelSet)
-
-
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<AbstractClientPlayer,PlayerModel<AbstractClientPlayer>>
- 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<AbstractClientPlayer,PlayerModel<AbstractClientPlayer>>
- Parameters:
stack
- The Elytra ItemStack.entity
- The entity being rendered.- Returns:
- The texture.
-