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/PlayerHotbarSelectedSlotChangeAfterEvent.md.

Class: PlayerHotbarSelectedSlotChangeAfterEvent

event player

Beta

包含玩家切换选择的快捷栏槽位后的事件相关信息。

Contains information regarding an event after changing the selected hotbar slot for a player.

Properties

itemStack?

readonly optional itemStack?: ItemStack

Beta

所选新槽位的物品堆。

Remarks

The item stack of the new slot selected.


newSlotSelected

readonly newSlotSelected: number

Beta

所选的新快捷栏槽位索引。

Remarks

The new hotbar slot index selected.


player

readonly player: Player

Beta

此事件的源玩家。

Remarks

Source Player for this event.


previousSlotSelected

readonly previousSlotSelected: number

Beta

先前选择的快捷栏槽位索引。

Remarks

The previous hotbar slot index selected.

同领域相关