Class RenderPlayerAsSpirit

java.lang.Object
etithespirit.orimod.client.render.RenderPlayerAsSpirit

public class RenderPlayerAsSpirit extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
    The texture for a spirit.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    renderThirdPersonItems(com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource renBuf, int combinedLightIn, net.minecraft.world.entity.LivingEntity entity)
    Renders the items being held by this character
    static void
    whenRenderingPlayer(net.minecraftforge.client.event.RenderPlayerEvent.Pre preRenderEvent)
    (Manually Subscribed) Occurs when the player is about to be rendered.

    Methods inherited from class java.lang.Object

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

    • SPIRIT_TEXTURE

      public static final net.minecraft.resources.ResourceLocation SPIRIT_TEXTURE
      The texture for a spirit.
  • Constructor Details

    • RenderPlayerAsSpirit

      public RenderPlayerAsSpirit()
  • Method Details

    • whenRenderingPlayer

      public static void whenRenderingPlayer(net.minecraftforge.client.event.RenderPlayerEvent.Pre preRenderEvent)
      (Manually Subscribed) Occurs when the player is about to be rendered. This is used to override the rendered model to a spirit if needed.
      Parameters:
      preRenderEvent - The render event containing meaningful information about the player renderer.
    • renderThirdPersonItems

      public static void renderThirdPersonItems(com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource renBuf, int combinedLightIn, net.minecraft.world.entity.LivingEntity entity)
      Renders the items being held by this character
      Parameters:
      matrix - The current matrix stack
      renBuf - A source of render buffers, used by the renderArmWithItem method.
      combinedLightIn - The combined light on the item.
      entity - The entity to render for.