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

Class: PlayerUseNameTagAfterEvent experimental

event player

Beta

包含有关玩家成功使用有命名的命名标签物品命名实体的相关信息。

Contains information related to when a player successfully names an Entity with a named Name Tag item.

Properties

entityNamed

entityNamed: Entity

World Mutation Beta

被玩家命名的实体。

Remarks

The entity that was named by the player.


newName

newName: string

World Mutation Beta

玩家给实体的新名称。

Remarks

The new name that the player has given to the entity.


player

player: Player

World Mutation Beta

使用命名标签的玩家的句柄。

Remarks

Handle to the player that used the name tag.


previousName?

optional previousName?: string

World Mutation Beta

玩家使用命名标签之前实体的先前名称。如果实体之前未命名,则为 undefined

Remarks

The previous name of the entity before the player used the name tag. This will be undefined if the entity was not previously named.

同领域相关