Class ElytraLayer<T extends LivingEntity,M extends EntityModel<T>> 
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<T,M>
 
net.minecraft.client.renderer.entity.layers.ElytraLayer<T,M> 
- Direct Known Subclasses:
- CustomElytraTest.CustomElytraLayer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ElytraModel<T>private static final ResourceLocation
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetElytraTexture(ItemStack stack, T entity) Gets the texture to use with this ElytraLayer.voidrender(PoseStack p_116951_, MultiBufferSource p_116952_, int p_116953_, T p_116954_, float p_116955_, float p_116956_, float p_116957_, float p_116958_, float p_116959_, float p_116960_) booleanshouldRender(ItemStack stack, T entity) Determines if the ElytraLayer should render.Methods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayercoloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
- 
Field Details- 
WINGS_LOCATION
- 
elytraModel
 
- 
- 
Constructor Details- 
ElytraLayer
 
- 
- 
Method Details- 
renderpublic void render(PoseStack p_116951_, MultiBufferSource p_116952_, int p_116953_, T p_116954_, float p_116955_, float p_116956_, float p_116957_, float p_116958_, float p_116959_, float p_116960_) - Specified by:
- renderin class- RenderLayer<T extends LivingEntity,- M extends EntityModel<T>> 
 
- 
shouldRenderDetermines 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 ItemStack
- entity- The entity being rendered.
- Returns:
- If the ElytraLayer should render.
 
- 
getElytraTextureGets 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.
 
 
-