Dimension
¶
文档版本:1.21.60.21
Dimension
类。script_api.minecraft/server.dimension.description
属性¶
heightRange
heightRange
:NumberRange
- script_api.minecraft/server.dimension.heightrange.description
id
id
:string
- script_api.minecraft/server.dimension.id.description
方法¶
getBlock
script_api.minecraft/server.dimension.getblock.description
location
:Vector3
- script_api.minecraft/server.dimension.getblock.location.description
- 返回值:
Block
|undefined
- script_api.minecraft/server.dimension.getblock.return
getBlockFromRay
script_api.minecraft/server.dimension.getblockfromray.description
getBlockFromRay(location: Vector3, direction: Vector3, options?: BlockRaycastOptions): BlockRaycastHit | undefined
location
:Vector3
- script_api.minecraft/server.dimension.getblockfromray.location.description
direction
:Vector3
- script_api.minecraft/server.dimension.getblockfromray.direction.description
options
?:BlockRaycastOptions
=null
- script_api.minecraft/server.dimension.getblockfromray.options.description
- 返回值:
BlockRaycastHit
|undefined
- script_api.minecraft/server.dimension.getblockfromray.return
getEntities
script_api.minecraft/server.dimension.getentities.description
options
?:EntityQueryOptions
=null
- script_api.minecraft/server.dimension.getentities.options.description
- 返回值:
Entity[]
- script_api.minecraft/server.dimension.getentities.return
getEntitiesAtBlockLocation
script_api.minecraft/server.dimension.getentitiesatblocklocation.description
location
:Vector3
- script_api.minecraft/server.dimension.getentitiesatblocklocation.location.description
- 返回值:
Entity[]
- script_api.minecraft/server.dimension.getentitiesatblocklocation.return
getEntitiesFromRay
script_api.minecraft/server.dimension.getentitiesfromray.description
getEntitiesFromRay(location: Vector3, direction: Vector3, options?: EntityRaycastOptions): EntityRaycastHit[]
location
:Vector3
- script_api.minecraft/server.dimension.getentitiesfromray.location.description
direction
:Vector3
- script_api.minecraft/server.dimension.getentitiesfromray.direction.description
options
?:EntityRaycastOptions
=null
- script_api.minecraft/server.dimension.getentitiesfromray.options.description
- 返回值:
EntityRaycastHit[]
- script_api.minecraft/server.dimension.getentitiesfromray.return
getPlayers
script_api.minecraft/server.dimension.getplayers.description
options
?:EntityQueryOptions
=null
- script_api.minecraft/server.dimension.getplayers.options.description
- 返回值:
Player[]
- script_api.minecraft/server.dimension.getplayers.return
runCommand
script_api.minecraft/server.dimension.runcommand.description
commandString
:string
- script_api.minecraft/server.dimension.runcommand.commandstring.description
- 返回值:
CommandResult
- script_api.minecraft/server.dimension.runcommand.return
runCommandAsync
script_api.minecraft/server.dimension.runcommandasync.description
commandString
:string
- script_api.minecraft/server.dimension.runcommandasync.commandstring.description
- 返回值:
Promise<CommandResult>
- script_api.minecraft/server.dimension.runcommandasync.return
setWeather
script_api.minecraft/server.dimension.setweather.description
weatherType
:WeatherType
- script_api.minecraft/server.dimension.setweather.weathertype.description
duration
?:int32
=null
∈[1
,1000000
]- script_api.minecraft/server.dimension.setweather.duration.description
- 返回值:
void
- script_api.minecraft/server.dimension.setweather.return
spawnEntity
script_api.minecraft/server.dimension.spawnentity.description
identifier
:string
- script_api.minecraft/server.dimension.spawnentity.identifier.description
location
:Vector3
- script_api.minecraft/server.dimension.spawnentity.location.description
- 返回值:
Entity
- script_api.minecraft/server.dimension.spawnentity.return
spawnItem
script_api.minecraft/server.dimension.spawnitem.description
itemStack
:ItemStack
- script_api.minecraft/server.dimension.spawnitem.itemstack.description
location
:Vector3
- script_api.minecraft/server.dimension.spawnitem.location.description
- 返回值:
Entity
- script_api.minecraft/server.dimension.spawnitem.return
spawnParticle
script_api.minecraft/server.dimension.spawnparticle.description
effectName
:string
- script_api.minecraft/server.dimension.spawnparticle.effectname.description
location
:Vector3
- script_api.minecraft/server.dimension.spawnparticle.location.description
molangVariables
?:MolangVariableMap
=null
- script_api.minecraft/server.dimension.spawnparticle.molangvariables.description
- 返回值:
void
- script_api.minecraft/server.dimension.spawnparticle.return