public class RenderHandEvent
extends net.minecraftforge.eventbus.api.Event
MinecraftForge.EVENT_BUS
whenever a hand is rendered in first person.
Canceling the event causes the hand to not render.Constructor and Description |
---|
RenderHandEvent(Hand hand,
MatrixStack mat,
IRenderTypeBuffer buffers,
int light,
float partialTicks,
float interpolatedPitch,
float swingProgress,
float equipProgress,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
IRenderTypeBuffer |
getBuffers() |
float |
getEquipProgress() |
Hand |
getHand() |
float |
getInterpolatedPitch() |
ItemStack |
getItemStack() |
int |
getLight() |
MatrixStack |
getMatrixStack() |
float |
getPartialTicks() |
float |
getSwingProgress() |
public RenderHandEvent(Hand hand, MatrixStack mat, IRenderTypeBuffer buffers, int light, float partialTicks, float interpolatedPitch, float swingProgress, float equipProgress, @Nonnull ItemStack stack)
public Hand getHand()
public MatrixStack getMatrixStack()
public IRenderTypeBuffer getBuffers()
public int getLight()
public float getPartialTicks()
public float getInterpolatedPitch()
public float getSwingProgress()
public float getEquipProgress()
@Nonnull public ItemStack getItemStack()