类 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.
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段修饰符和类型字段说明private final float
private final InteractionHand
private final float
private final MultiBufferSource
private final int
private final float
private final PoseStack
private final ItemStack
private final float
-
构造器概要
构造器构造器说明RenderHandEvent
(InteractionHand hand, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, float partialTick, float interpolatedPitch, float swingProgress, float equipProgress, ItemStack stack) -
方法概要
修饰符和类型方法说明float
返回 the progress of the equip animation, from0.0
to1.0
。getHand()
返回 the hand being rendered。float
返回 the interpolated pitch of the player entity。返回 the item stack to be rendered。返回 the source of rendering buffers。int
返回 the amount of packed (sky and block) light for rendering。float
返回 the partial tick。返回 the pose stack used for rendering。float
返回 the swing progress of the hand being rendered。从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
hand
-
poseStack
-
multiBufferSource
-
packedLight
private final int packedLight -
partialTick
private final float partialTick -
interpolatedPitch
private final float interpolatedPitch -
swingProgress
private final float swingProgress -
equipProgress
private final float equipProgress -
stack
-
-
构造器详细资料
-
RenderHandEvent
@Internal public RenderHandEvent(InteractionHand hand, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, float partialTick, float interpolatedPitch, float swingProgress, float equipProgress, ItemStack stack)
-
-
方法详细资料
-
getHand
返回 the hand being rendered。- 返回:
- the hand 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
- 另请参阅:
-
getPartialTick
public float getPartialTick()返回 the partial tick。- 返回:
- the partial tick
-
getInterpolatedPitch
public float getInterpolatedPitch()返回 the interpolated pitch of the player entity。- 返回:
- the interpolated pitch of the player entity
-
getSwingProgress
public float getSwingProgress()返回 the swing progress of the hand being rendered。- 返回:
- the swing progress of the hand being rendered
-
getEquipProgress
public float getEquipProgress()返回 the progress of the equip animation, from0.0
to1.0
。- 返回:
- the progress of the equip animation, from
0.0
to1.0
-
getItemStack
返回 the item stack to be rendered。- 返回:
- the item stack to be rendered
-