World
¶
文档版本:1.21.60.21
World
类。script_api.minecraft/server.world.description
属性¶
afterEvents
afterEvents
:WorldAfterEvents
- script_api.minecraft/server.world.afterevents.description
beforeEvents
beforeEvents
:WorldBeforeEvents
- script_api.minecraft/server.world.beforeevents.description
gameRules
gameRules
:GameRules
- script_api.minecraft/server.world.gamerules.description
isHardcore
isHardcore
:boolean
- script_api.minecraft/server.world.ishardcore.description
scoreboard
scoreboard
:Scoreboard
- script_api.minecraft/server.world.scoreboard.description
structureManager
structureManager
:StructureManager
- script_api.minecraft/server.world.structuremanager.description
方法¶
broadcastClientMessage
script_api.minecraft/server.world.broadcastclientmessage.description
id
:string
- script_api.minecraft/server.world.broadcastclientmessage.id.description
value
:string
- script_api.minecraft/server.world.broadcastclientmessage.value.description
- 返回值:
void
- script_api.minecraft/server.world.broadcastclientmessage.return
clearDynamicProperties
script_api.minecraft/server.world.cleardynamicproperties.description
- 返回值:
void
- script_api.minecraft/server.world.cleardynamicproperties.return
getAbsoluteTime
script_api.minecraft/server.world.getabsolutetime.description
- 返回值:
int32
- script_api.minecraft/server.world.getabsolutetime.return
getAllPlayers
script_api.minecraft/server.world.getallplayers.description
- 返回值:
Player[]
- script_api.minecraft/server.world.getallplayers.return
getDay
script_api.minecraft/server.world.getday.description
- 返回值:
int32
- script_api.minecraft/server.world.getday.return
getDefaultSpawnLocation
script_api.minecraft/server.world.getdefaultspawnlocation.description
- 返回值:
Vector3
- script_api.minecraft/server.world.getdefaultspawnlocation.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
getDynamicProperty
script_api.minecraft/server.world.getdynamicproperty.description
identifier
:string
- script_api.minecraft/server.world.getdynamicproperty.identifier.description
- 返回值:
boolean
|double
|float
|string
|Vector3
|undefined
- script_api.minecraft/server.world.getdynamicproperty.return
getDynamicPropertyIds
script_api.minecraft/server.world.getdynamicpropertyids.description
- 返回值:
string[]
- script_api.minecraft/server.world.getdynamicpropertyids.return
getDynamicPropertyTotalByteCount
script_api.minecraft/server.world.getdynamicpropertytotalbytecount.description
- 返回值:
int32
- script_api.minecraft/server.world.getdynamicpropertytotalbytecount.return
getEntity
script_api.minecraft/server.world.getentity.description
id
:string
- script_api.minecraft/server.world.getentity.id.description
- 返回值:
Entity
|undefined
- script_api.minecraft/server.world.getentity.return
getMoonPhase
script_api.minecraft/server.world.getmoonphase.description
- 返回值:
MoonPhase
- script_api.minecraft/server.world.getmoonphase.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
getTimeOfDay
script_api.minecraft/server.world.gettimeofday.description
- 返回值:
int32
- script_api.minecraft/server.world.gettimeofday.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
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
setAbsoluteTime
script_api.minecraft/server.world.setabsolutetime.description
absoluteTime
:int32
- script_api.minecraft/server.world.setabsolutetime.absolutetime.description
- 返回值:
void
- script_api.minecraft/server.world.setabsolutetime.return
setDefaultSpawnLocation
script_api.minecraft/server.world.setdefaultspawnlocation.description
spawnLocation
:Vector3
- script_api.minecraft/server.world.setdefaultspawnlocation.spawnlocation.description
- 返回值:
void
- script_api.minecraft/server.world.setdefaultspawnlocation.return
setDynamicProperty
script_api.minecraft/server.world.setdynamicproperty.description
identifier
:string
- script_api.minecraft/server.world.setdynamicproperty.identifier.description
value
?:boolean
|double
|float
|string
|Vector3
=null
- script_api.minecraft/server.world.setdynamicproperty.value.description
- 返回值:
void
- script_api.minecraft/server.world.setdynamicproperty.return
setTimeOfDay
script_api.minecraft/server.world.settimeofday.description
timeOfDay
:int32
|TimeOfDay
- script_api.minecraft/server.world.settimeofday.timeofday.description
- 返回值:
void
- script_api.minecraft/server.world.settimeofday.return
stopMusic
script_api.minecraft/server.world.stopmusic.description
- 返回值:
void
- script_api.minecraft/server.world.stopmusic.return