Class RenderArmEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RenderArmEvent
- All Implemented Interfaces:
- net.neoforged.bus.api.ICancellableEvent
public class RenderArmEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
Fired before the player's arm is rendered in first person. This is a more targeted version of 
RenderHandEvent,
 and can be used to replace the rendering of the player's arm, such as for rendering armor on the arm or outright
 replacing the arm with armor.
 This event is cancellable, and does not 
.
 If this event is cancelled, then the arm will not be rendered.invalid reference
have a result
This event is fired on the main Forge event bus, only on the logical client.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final HumanoidArmprivate final MultiBufferSourceprivate final intprivate final AbstractClientPlayerprivate final PoseStack
- 
Constructor SummaryConstructorsConstructorDescriptionRenderArmEvent(PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, AbstractClientPlayer player, HumanoidArm arm) 
- 
Method SummaryModifier and TypeMethodDescriptiongetArm()Returns the arm being rendered.Returns the source of rendering buffers.intReturns the amount of packed (sky and block) light for rendering.Returns the client player that is having their arm rendered.Returns the pose stack used for rendering.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEventisCanceled, setCanceled
- 
Field Details- 
poseStack
- 
multiBufferSource
- 
packedLightprivate final int packedLight
- 
player
- 
arm
 
- 
- 
Constructor Details- 
RenderArmEvent@Internal public RenderArmEvent(PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, AbstractClientPlayer player, HumanoidArm arm) 
 
- 
- 
Method Details- 
getArmReturns the arm being rendered.- Returns:
- the arm 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:
 
- 
getPlayerReturns the client player that is having their arm rendered. In general, this will be the same asMinecraft.player.- Returns:
- the client player that is having their arm rendered
 
 
-