Class NecromancerEntityRenderer<P extends net.minecraft.world.entity.Entity & SkeletonParent<P,S>,S extends Skeleton>
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<P>
foundry.veil.api.client.necromancer.render.NecromancerEntityRenderer<P,S>
- Type Parameters:
P
- The entity to renderS
- The skeleton for the entity
public abstract class NecromancerEntityRenderer<P extends net.minecraft.world.entity.Entity & SkeletonParent<P,S>,S extends Skeleton>
extends net.minecraft.client.renderer.entity.EntityRenderer<P>
A renderer for a necromancer entity.
-
Field Summary
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, LEASH_RENDER_STEPS, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
ModifierConstructorDescriptionprotected
NecromancerEntityRenderer
(net.minecraft.client.renderer.entity.EntityRendererProvider.Context context, float shadowRadius) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayer
(NecromancerEntityRenderLayer<P, S> layer) Adds a new layer to this renderer.createAnimator
(P parent, S skeleton) Creates an animator for the specified entity and skeleton.abstract S
createSkeleton
(P parent) Creates a skeleton for the specified entity.net.minecraft.resources.ResourceLocation
getTextureLocation
(P entity) void
render
(P parent, float entityYaw, float partialTick, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight) void
render
(P parent, NecromancerRenderer renderer, MatrixStack matrixStack, int packedLight, float partialTicks) Renders the necromancer entity.final void
setupEntity
(P parent) Adds a skeleton and animator to the specified entity.Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getShadowRadius, getSkyLightLevel, renderNameTag, shouldRender, shouldShowName
-
Constructor Details
-
NecromancerEntityRenderer
protected NecromancerEntityRenderer(net.minecraft.client.renderer.entity.EntityRendererProvider.Context context, float shadowRadius)
-
-
Method Details
-
addLayer
Adds a new layer to this renderer.- Parameters:
layer
- The layer to add
-
setupEntity
Adds a skeleton and animator to the specified entity.- Parameters:
parent
- The entity to set up
-
createSkeleton
Creates a skeleton for the specified entity.- Parameters:
parent
- The entity to create the skeleton for- Returns:
- The skeleton for that entity
-
createAnimator
Creates an animator for the specified entity and skeleton.- Parameters:
parent
- The entity to create the animator forskeleton
- The skeleton of the entity- Returns:
- The animator for that entity
-
render
public void render(P parent, float entityYaw, float partialTick, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight) - Overrides:
render
in classnet.minecraft.client.renderer.entity.EntityRenderer<P extends net.minecraft.world.entity.Entity & SkeletonParent<P,
S>>
-
render
public void render(P parent, NecromancerRenderer renderer, MatrixStack matrixStack, int packedLight, float partialTicks) Renders the necromancer entity.- Parameters:
parent
- The entity to renderrenderer
- The renderer instancematrixStack
- The current transformpackedLight
- The packed lightmap coordinatespartialTicks
- The percentage from last tick to this tick
-
getTextureLocation
- Specified by:
getTextureLocation
in classnet.minecraft.client.renderer.entity.EntityRenderer<P extends net.minecraft.world.entity.Entity & SkeletonParent<P,
S>>
-