World
¶
文档版本:1.21.60.21
World
类。script_api.minecraft/server.world.description
方法¶
getAllPlayers
script_api.minecraft/server.world.getallplayers.description
- 返回值:
Player[]
- script_api.minecraft/server.world.getallplayers.return
getDimension
script_api.minecraft/server.world.getdimension.description
dimensionId
:string
- script_api.minecraft/server.world.getdimension.dimensionid.description
- 返回值:
Dimension
- script_api.minecraft/server.world.getdimension.return
getPlayers
script_api.minecraft/server.world.getplayers.description
options
?:EntityQueryOptions
=null
- script_api.minecraft/server.world.getplayers.options.description
- 返回值:
Player[]
- script_api.minecraft/server.world.getplayers.return
playMusic
script_api.minecraft/server.world.playmusic.description
trackId
:string
- script_api.minecraft/server.world.playmusic.trackid.description
musicOptions
?:MusicOptions
=null
- script_api.minecraft/server.world.playmusic.musicoptions.description
- 返回值:
void
- script_api.minecraft/server.world.playmusic.return
playSound
script_api.minecraft/server.world.playsound.description
soundId
:string
- script_api.minecraft/server.world.playsound.soundid.description
location
:Vector3
- script_api.minecraft/server.world.playsound.location.description
soundOptions
?:WorldSoundOptions
=null
- script_api.minecraft/server.world.playsound.soundoptions.description
- 返回值:
void
- script_api.minecraft/server.world.playsound.return
queueMusic
script_api.minecraft/server.world.queuemusic.description
trackId
:string
- script_api.minecraft/server.world.queuemusic.trackid.description
musicOptions
?:MusicOptions
=null
- script_api.minecraft/server.world.queuemusic.musicoptions.description
- 返回值:
void
- script_api.minecraft/server.world.queuemusic.return
sendMessage
script_api.minecraft/server.world.sendmessage.description
message
:(RawMessage | string)[]
|RawMessage
|string
- script_api.minecraft/server.world.sendmessage.message.description
- 返回值:
void
- script_api.minecraft/server.world.sendmessage.return
stopMusic
script_api.minecraft/server.world.stopmusic.description
- 返回值:
void
- script_api.minecraft/server.world.stopmusic.return