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

Class: PlayerInventoryItemChangeAfterEventSignal

event player inventory

Beta

管理玩家库存物品更改后相关的回调。

Manages callbacks that are connected after a player's inventory item is changed.

Methods

subscribe()

subscribe(callback, options?): (arg0) => void

World Mutation Early Execution Beta

添加一个将在玩家库存物品更改后调用的回调。

Parameters

callback

(arg0) => void

此事件触发时调用的函数回调。 Function callback that is called when this event fires.

options?

InventoryItemEventOptions

事件订阅的其他过滤选项。 Additional filtering options for the event subscription.

Returns

(arg0) => void

Remarks

Adds a callback that will be called after a player's inventory item is changed.


unsubscribe()

unsubscribe(callback): void

World Mutation Early Execution Beta

移除一个在玩家库存物品更改后调用的回调。

Parameters

callback

(arg0) => void

Returns

void

Remarks

Removes a callback from being called after a player's inventory item is changed.

同领域相关