Package net.minecraftforge.client.event
Class RenderHandEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderHandEvent
public class RenderHandEvent
extends net.minecraftforge.eventbus.api.Event
Fired before a hand is rendered in the first person view.
 
This event is cancellable, and does not have a result. If this event is cancelled, then the hand will not be rendered.
This event is fired on the main Forge event bus, only on the logical client.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final floatprivate final InteractionHandprivate final floatprivate final MultiBufferSourceprivate final intprivate final floatprivate final PoseStackprivate final ItemStackprivate final float
- 
Constructor SummaryConstructorsConstructorDescriptionRenderHandEvent(InteractionHand hand, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, float partialTick, float interpolatedPitch, float swingProgress, float equipProgress, ItemStack stack) 
- 
Method SummaryModifier and TypeMethodDescriptionfloatReturns the progress of the equip animation, from0.0to1.0.getHand()Returns the hand being rendered.floatReturns the interpolated pitch of the player entity.Returns the item stack to be rendered.Returns the source of rendering buffers.intReturns the amount of packed (sky and block) light for rendering.floatReturns the partial tick.Returns the pose stack used for rendering.floatReturns the swing progress of the hand being rendered.Methods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
hand
- 
poseStack
- 
multiBufferSource
- 
packedLightprivate final int packedLight
- 
partialTickprivate final float partialTick
- 
interpolatedPitchprivate final float interpolatedPitch
- 
swingProgressprivate final float swingProgress
- 
equipProgressprivate final float equipProgress
- 
stack
 
- 
- 
Constructor Details- 
RenderHandEvent@Internal public RenderHandEvent(InteractionHand hand, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, float partialTick, float interpolatedPitch, float swingProgress, float equipProgress, ItemStack stack) 
 
- 
- 
Method Details- 
getHandReturns the hand being rendered.- Returns:
- the hand being rendered
 
- 
getPoseStackReturns the pose stack used for rendering.- Returns:
- the pose stack used for rendering
 
- 
getMultiBufferSourceReturns the source of rendering buffers.- Returns:
- the source of rendering buffers
 
- 
getPackedLightpublic int getPackedLight()Returns the amount of packed (sky and block) light for rendering.- Returns:
- the amount of packed (sky and block) light for rendering
- See Also:
 
- 
getPartialTickpublic float getPartialTick()Returns the partial tick.- Returns:
- the partial tick
 
- 
getInterpolatedPitchpublic float getInterpolatedPitch()Returns the interpolated pitch of the player entity.- Returns:
- the interpolated pitch of the player entity
 
- 
getSwingProgresspublic float getSwingProgress()Returns the swing progress of the hand being rendered.- Returns:
- the swing progress of the hand being rendered
 
- 
getEquipProgresspublic float getEquipProgress()Returns the progress of the equip animation, from0.0to1.0.- Returns:
- the progress of the equip animation, from 0.0to1.0
 
- 
getItemStackReturns the item stack to be rendered.- Returns:
- the item stack to be rendered
 
 
-