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

Class: PlayerUseNameTagAfterEventSignal experimental

event player

Beta

管理连接到玩家使用命名过的命名牌物品成功命名实体事件的回调。

Manages callbacks that are connected to when a player successfully names an Entity with a named Name Tag item.

Methods

subscribe()

subscribe(callback): (arg0) => void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Returns

(arg0) => void

Remarks

将指定回调订阅到玩家使用命名牌后事件。

Subscribes the specified callback to a player use name tag after event.


unsubscribe()

unsubscribe(callback): void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Returns

void

Remarks

从玩家使用命名牌后事件中移除指定回调。

Removes the specified callback from a player use name tag after event.

同领域相关