Class NecromancerSkinEntityRenderLayer<T extends net.minecraft.world.entity.Entity & SkeletonParent<T,M>,M extends Skeleton>
java.lang.Object
foundry.veil.api.client.necromancer.render.NecromancerEntityRenderLayer<T,M>
foundry.veil.api.client.necromancer.render.NecromancerSkinEntityRenderLayer<T,M>
- Type Parameters:
T
- The type of entity to renderM
- The skeleton to render
public abstract class NecromancerSkinEntityRenderLayer<T extends net.minecraft.world.entity.Entity & SkeletonParent<T,M>,M extends Skeleton>
extends NecromancerEntityRenderLayer<T,M>
Renders a single skin with a render type for a necromancer entity.
-
Field Summary
Fields inherited from class foundry.veil.api.client.necromancer.render.NecromancerEntityRenderLayer
renderer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract @Nullable net.minecraft.client.renderer.RenderType
getRenderType
(T parent) Retrieves the render type to use for the specified entity.abstract @Nullable Skin
Retrieves the skin to use for the specified entity.void
render
(T parent, M skeleton, NecromancerRenderer renderer, MatrixStack matrixStack, int packedLight, float partialTicks) Renders a feature for the specified entity and skeleton.protected void
renderSkin
(T parent, M skeleton, Skin skin, net.minecraft.client.renderer.RenderType renderType, NecromancerRenderer renderer, MatrixStack matrixStack, int packedLight, float partialTicks) Renders the skin on the specified entity.
-
Constructor Details
-
NecromancerSkinEntityRenderLayer
-
-
Method Details
-
getRenderType
@Nullable public abstract @Nullable net.minecraft.client.renderer.RenderType getRenderType(T parent) Retrieves the render type to use for the specified entity.- Parameters:
parent
- The entity to get the render type for- Returns:
- The render type or
null
to skip rendering
-
getSkin
Retrieves the skin to use for the specified entity.- Parameters:
parent
- The entity to get the skin for- Returns:
- The skin or
null
to skip rendering
-
render
public void render(T parent, M skeleton, NecromancerRenderer renderer, MatrixStack matrixStack, int packedLight, float partialTicks) Description copied from class:NecromancerEntityRenderLayer
Renders a feature for the specified entity and skeleton.- Specified by:
render
in classNecromancerEntityRenderLayer<T extends net.minecraft.world.entity.Entity & SkeletonParent<T,
M>, M extends Skeleton> - Parameters:
parent
- The entity to drawskeleton
- The skeleton of the entity to base a pose onrenderer
- The renderer instancematrixStack
- The current transformpackedLight
- The packed lightmap coordinatespartialTicks
- The percentage from last tick to this tick
-
renderSkin
protected void renderSkin(T parent, M skeleton, Skin skin, net.minecraft.client.renderer.RenderType renderType, NecromancerRenderer renderer, MatrixStack matrixStack, int packedLight, float partialTicks) Renders the skin on the specified entity.- Parameters:
parent
- The entity to draw the skin forskeleton
- The skeleton of the entity to base a pose onskin
- The skin to drawrenderType
- The render type to userenderer
- The renderer instancematrixStack
- The current transformpackedLight
- The packed lightmap coordinatespartialTicks
- The percentage from last tick to this tick
-