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

Class: PlayerInventoryItemChangeAfterEvent

event player inventory

Beta

包含有关玩家库存物品更改之后的事件信息。

Contains information regarding an event after a player's inventory item changes.

Properties

beforeItemStack?

readonly optional beforeItemStack?: ItemStack

Beta

之前的物品堆。

Remarks

The previous item stack.


inventoryType

readonly inventoryType: PlayerInventoryType

Beta

库存类型。

Remarks

Inventory type.


itemStack?

readonly optional itemStack?: ItemStack

Beta

新的物品堆。

Remarks

The new item stack.


player

readonly player: Player

Beta

此事件的源玩家。

Remarks

Source Player for this event.


slot

readonly slot: number

Beta

发生更改的槽位索引。

Remarks

The slot index with the change.

同领域相关