public class RenderSpecificHandEvent extends Event
MinecraftForge.EVENT_BUS
whenever a hand is rendered in first person.
Canceling the event causes the hand to not render.
TODO This may get merged in 11 with RenderHandEvent to make a generic hand renderingEvent.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private float |
equipProgress |
private EnumHand |
hand |
private float |
interpolatedPitch |
private float |
partialTicks |
private ItemStack |
stack |
private float |
swingProgress |
Constructor and Description |
---|
RenderSpecificHandEvent(EnumHand hand,
float partialTicks,
float interpolatedPitch,
float swingProgress,
float equipProgress,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
float |
getEquipProgress() |
EnumHand |
getHand() |
float |
getInterpolatedPitch() |
ItemStack |
getItemStack() |
float |
getPartialTicks() |
float |
getSwingProgress() |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final EnumHand hand
private final float partialTicks
private final float interpolatedPitch
private final float swingProgress
private final float equipProgress
@Nonnull private final ItemStack stack
public EnumHand getHand()
public float getPartialTicks()
public float getInterpolatedPitch()
public float getSwingProgress()
public float getEquipProgress()
@Nonnull public ItemStack getItemStack()