For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/PlayerSwingStartAfterEvent.md.

Class: PlayerSwingStartAfterEvent

event player

Beta

包含有关玩家开始挥动手臂的信息。

Contains information regarding a player starting to swing their arm.

Properties

heldItemStack?

readonly optional heldItemStack?: ItemStack

Beta

玩家在挥动开始时持有的物品堆。

Remarks

The item stack being held by the player at the start of their swing.


player

readonly player: Player

Beta

此事件的源玩家。

Remarks

Source Player for this event.


swingSource

readonly swingSource: EntitySwingSource

Beta

玩家挥动的来源,参见 EntitySwingSource

Remarks

The source of the Player swing, see EntitySwingSource.

同领域相关