Class RenderHandEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderHandEvent

public class RenderHandEvent extends net.minecraftforge.eventbus.api.Event
This event is fired on the MinecraftForge.EVENT_BUS whenever a hand is rendered in first person. Canceling the event causes the hand to not render.
  • Field Details

    • hand

      private final InteractionHand hand
    • mat

      private final PoseStack mat
    • buffers

      private final MultiBufferSource buffers
    • light

      private final int light
    • partialTicks

      private final float partialTicks
    • interpolatedPitch

      private final float interpolatedPitch
    • swingProgress

      private final float swingProgress
    • equipProgress

      private final float equipProgress
    • stack

      @Nonnull private final ItemStack stack
  • Constructor Details

  • Method Details

    • getHand

      public InteractionHand getHand()
    • getMatrixStack

      public PoseStack getMatrixStack()
    • getBuffers

      public MultiBufferSource getBuffers()
    • getLight

      public int getLight()
    • getPartialTicks

      public float getPartialTicks()
    • getInterpolatedPitch

      public float getInterpolatedPitch()
      Returns:
      The interpolated pitch of the player entity
    • getSwingProgress

      public float getSwingProgress()
      Returns:
      The swing progress of the hand being rendered
    • getEquipProgress

      public float getEquipProgress()
      Returns:
      The progress of the equip animation. 1.0 is fully equipped.
    • getItemStack

      @Nonnull public ItemStack getItemStack()
      Returns:
      The ItemStack to be rendered