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 render
S - 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    NecromancerEntityRenderer(net.minecraft.client.renderer.entity.EntityRendererProvider.Context context, float shadowRadius)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a new layer to this renderer.
    abstract Animator<P,S>
    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
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NecromancerEntityRenderer

      protected NecromancerEntityRenderer(net.minecraft.client.renderer.entity.EntityRendererProvider.Context context, float shadowRadius)
  • Method Details

    • addLayer

      public void addLayer(NecromancerEntityRenderLayer<P,S> layer)
      Adds a new layer to this renderer.
      Parameters:
      layer - The layer to add
    • setupEntity

      public final void setupEntity(P parent)
      Adds a skeleton and animator to the specified entity.
      Parameters:
      parent - The entity to set up
    • createSkeleton

      public abstract S createSkeleton(P parent)
      Creates a skeleton for the specified entity.
      Parameters:
      parent - The entity to create the skeleton for
      Returns:
      The skeleton for that entity
    • createAnimator

      public abstract Animator<P,S> createAnimator(P parent, S skeleton)
      Creates an animator for the specified entity and skeleton.
      Parameters:
      parent - The entity to create the animator for
      skeleton - 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 class net.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 render
      renderer - The renderer instance
      matrixStack - The current transform
      packedLight - The packed lightmap coordinates
      partialTicks - The percentage from last tick to this tick
    • getTextureLocation

      public net.minecraft.resources.ResourceLocation getTextureLocation(P entity)
      Specified by:
      getTextureLocation in class net.minecraft.client.renderer.entity.EntityRenderer<P extends net.minecraft.world.entity.Entity & SkeletonParent<P,S>>