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

Class: PlayerInteractWithEntityAfterEventSignal

event player entity

Beta

管理连接到玩家与实体交互后事件的回调。

Manages callbacks that are connected to after a player interacts with an entity.

Methods

subscribe()

subscribe(callback): (arg0) => void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Returns

(arg0) => void

Remarks

添加一个将在玩家与实体交互后调用的回调。

Adds a callback that will be called after a player interacts with an entity.


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 interacts with an entity.

同领域相关