类 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>
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getElytraTexture
(ItemStack stack, T entity) Gets the texture to use with this ElytraLayer.void
render
(PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight, T pLivingEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTicks, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) boolean
shouldRender
(ItemStack stack, T entity) Determines if the ElytraLayer should render.从类继承的方法 net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
字段详细资料
-
WINGS_LOCATION
-
elytraModel
-
-
构造器详细资料
-
ElytraLayer
-
-
方法详细资料
-
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
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 ItemStackentity
- The entity being rendered.- 返回:
- If the ElytraLayer should render.
-
getElytraTexture
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.
-