Player
¶
文档版本:1.21.60.21
Player
类,扩展自Entity
。script_api.minecraft/server.player.description
属性¶
name
name
:string
- script_api.minecraft/server.player.name.description
方法¶
playSound
script_api.minecraft/server.player.playsound.description
soundId
:string
- script_api.minecraft/server.player.playsound.soundid.description
soundOptions
?:PlayerSoundOptions
=null
- script_api.minecraft/server.player.playsound.soundoptions.description
- 返回值:
void
- script_api.minecraft/server.player.playsound.return
sendMessage
script_api.minecraft/server.player.sendmessage.description
message
:(RawMessage | string)[]
|RawMessage
|string
- script_api.minecraft/server.player.sendmessage.message.description
- 返回值:
void
- script_api.minecraft/server.player.sendmessage.return