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.Modifier and Type | Field and Description |
---|---|
private IRenderTypeBuffer |
buffers |
private float |
equipProgress |
private Hand |
hand |
private float |
interpolatedPitch |
private int |
light |
private MatrixStack |
mat |
private float |
partialTicks |
private ItemStack |
stack |
private float |
swingProgress |
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() |
private final Hand hand
private final MatrixStack mat
private final IRenderTypeBuffer buffers
private final int light
private final float partialTicks
private final float interpolatedPitch
private final float swingProgress
private final float equipProgress
@Nonnull private final ItemStack stack
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()