类 RenderArmEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderArmEvent
public class RenderArmEvent
extends net.minecraftforge.eventbus.api.Event
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 have a result. If this event is cancelled, then the arm will not be rendered.
This event is fired on the main Forge event bus, only on the logical client.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段修饰符和类型字段说明private final HumanoidArm
private final MultiBufferSource
private final int
private final PoseStack
-
构造器概要
构造器构造器说明RenderArmEvent
(PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, HumanoidArm arm) -
方法概要
修饰符和类型方法说明getArm()
返回 the arm being rendered。返回 the source of rendering buffers。int
返回 the amount of packed (sky and block) light for rendering。返回 the pose stack used for rendering。从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
poseStack
-
multiBufferSource
-
packedLight
private final int packedLight -
arm
-
-
构造器详细资料
-
RenderArmEvent
@Internal public RenderArmEvent(PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, HumanoidArm arm)
-
-
方法详细资料
-
getArm
返回 the arm being rendered。- 返回:
- the arm being rendered
-
getPoseStack
返回 the pose stack used for rendering。- 返回:
- the pose stack used for rendering
-
getMultiBufferSource
返回 the source of rendering buffers。- 返回:
- the source of rendering buffers
-
getPackedLight
public int getPackedLight()返回 the amount of packed (sky and block) light for rendering。- 返回:
- the amount of packed (sky and block) light for rendering
- 另请参阅:
-