Class NecromancerEntityRenderer<T extends net.minecraft.world.entity.Entity & SkeletonParent,M extends Skeleton<T>>

java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
foundry.veil.api.client.necromancer.render.NecromancerEntityRenderer<T,M>

public abstract class NecromancerEntityRenderer<T extends net.minecraft.world.entity.Entity & SkeletonParent,M extends Skeleton<T>> extends net.minecraft.client.renderer.entity.EntityRenderer<T>
  • 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 pContext, Function<T,M> skeletonFactory, BiFunction<T,M,Animator<T,M>> animatorFactory, float shadowRadius)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    int
     
    protected net.minecraft.client.renderer.RenderType
    getRenderType(T pLivingEntity, boolean visible, boolean spectator, boolean glowing)
     
    abstract net.minecraft.client.renderer.RenderType
    getRenderType(T entity, net.minecraft.resources.ResourceLocation texture)
     
    abstract Skin<M>
    getSkin(T parent)
     
    void
    render(T pEntity, float pEntityYaw, float pPartialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource pBuffer, int pPackedLight)
     
    void
    renderSkin(T entity, M skeleton, Skin<M> skin, int ticksExisted, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer consumer, int packedLight, int packedOverlay, float r, float g, float b, float a)
     
    void
    setupEntity(T entity)
     

    Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer

    getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getShadowRadius, getSkyLightLevel, getTextureLocation, 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 pContext, Function<T,M> skeletonFactory, BiFunction<T,M,Animator<T,M>> animatorFactory, float shadowRadius)
  • Method Details

    • addLayer

      public void addLayer(NecromancerEntityRenderLayer<T,M> layer)
    • setupEntity

      public void setupEntity(T entity)
    • getSkin

      public abstract Skin<M> getSkin(T parent)
    • render

      public void render(T pEntity, float pEntityYaw, float pPartialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource pBuffer, int pPackedLight)
      Overrides:
      render in class net.minecraft.client.renderer.entity.EntityRenderer<T extends net.minecraft.world.entity.Entity & SkeletonParent>
    • getOverlayCoords

      public int getOverlayCoords(T pEntity)
    • renderSkin

      public void renderSkin(T entity, M skeleton, Skin<M> skin, int ticksExisted, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer consumer, int packedLight, int packedOverlay, float r, float g, float b, float a)
    • getRenderType

      public abstract net.minecraft.client.renderer.RenderType getRenderType(T entity, net.minecraft.resources.ResourceLocation texture)
    • getRenderType

      protected net.minecraft.client.renderer.RenderType getRenderType(T pLivingEntity, boolean visible, boolean spectator, boolean glowing)