类 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>

public class ElytraLayer<T extends LivingEntity,M extends EntityModel<T>> extends RenderLayer<T,M>
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • render

      public void render(PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight, T pLivingEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTicks, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch)
      指定者:
      render 在类中 RenderLayer<T extends LivingEntity,M extends EntityModel<T>>
    • shouldRender

      public boolean shouldRender(ItemStack stack, T entity)
      Determines if the ElytraLayer should render. ItemStack and Entity are provided for modder convenience, For example, using the same ElytraLayer for multiple custom Elytra.
      参数:
      stack - The Elytra ItemStack
      entity - The entity being rendered.
      返回:
      If the ElytraLayer should render.
    • getElytraTexture

      public ResourceLocation getElytraTexture(ItemStack stack, T entity)
      Gets the texture to use with this ElytraLayer. This assumes the vanilla Elytra model.
      参数:
      stack - The Elytra ItemStack.
      entity - The entity being rendered.
      返回:
      The texture.