Class: PlayerUseNameTagAfterEvent experimental
event playerBeta
包含有关玩家成功使用有命名的命名标签物品命名实体的相关信息。
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?
optionalpreviousName?: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.
