Interface IForgeElytraLayer<T>
- All Known Implementing Classes:
ElytraLayer
public interface IForgeElytraLayer<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResourceLocation
getElytraTexture
(ItemStack stack, T entity) Gets the texture to use with this ElytraLayer.default boolean
shouldRender
(ItemStack stack, T entity) Determines if the ElytraLayer should render.
-
Method Details
-
shouldRender
Determines if the ElytraLayer should render. ItemStack and Entity are provided for modder convenience, For example, using the same ElytraLayer for multiple custom Elytra.- Parameters:
stack
- The Elytra ItemStackentity
- The entity being rendered.- Returns:
- If the ElytraLayer should render.
-
getElytraTexture
Gets the texture to use with this ElytraLayer. This assumes the vanilla Elytra model.- Parameters:
stack
- The Elytra ItemStack.entity
- The entity being rendered.- Returns:
- The texture.
-