@minecraft
    正在准备搜索索引...

    类 PlayerUseNameTagAfterEvent实验性

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

    索引

    属性

    entityNamed: Entity

    The entity that was named by the player.

    newName: string

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

    player: Player

    Handle to the player that used the name tag.

    previousName?: string

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