Package net.minecraftforge.client.event
Class RenderArmEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderArmEvent
public class RenderArmEvent
extends net.minecraftforge.eventbus.api.Event
This is a more targeted version of
RenderHandEvent
event that is fired specifically when
a player's arm is being rendered in first person, and should be used instead if the desired
outcome is just to replace the rendering of the arm, such as to make armor render on it or
instead of it.
This event is fired on the MinecraftForge.EVENT_BUS
Canceling the event causes the arm to not render.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final HumanoidArm
private final MultiBufferSource
private final int
private final AbstractClientPlayer
private final PoseStack
-
Constructor Summary
ConstructorDescriptionRenderArmEvent
(PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, AbstractClientPlayer player, HumanoidArm arm) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
poseStack
-
multiBufferSource
-
packedLight
private final int packedLight -
player
-
arm
-
-
Constructor Details
-
RenderArmEvent
public RenderArmEvent(PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, AbstractClientPlayer player, HumanoidArm arm)
-
-
Method Details
-
getArm
- Returns:
- The arm being rendered.
-
getPoseStack
-
getMultiBufferSource
-
getPackedLight
public int getPackedLight() -
getPlayer
- Returns:
- the client player that is having their arm rendered. In general this will be the same as
Minecraft.player
.
-