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 HandSide
private final IRenderTypeBuffer
private final int
private final AbstractClientPlayerEntity
private final MatrixStack
-
Constructor Summary
ConstructorDescriptionRenderArmEvent
(MatrixStack poseStack, IRenderTypeBuffer multiBufferSource, int packedLight, AbstractClientPlayerEntity player, HandSide 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(MatrixStack poseStack, IRenderTypeBuffer multiBufferSource, int packedLight, AbstractClientPlayerEntity player, HandSide 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
.
-