跳转至

Dimension

文档版本:1.21.0.24

Dimension类。script_api.minecraft/server.dimension.description

属性

id
read-only id: string;

方法

getBlock

script_api.minecraft/server.dimension.getblock.description

getBlock(location: Vector3): Block | undefined
getEntities

script_api.minecraft/server.dimension.getentities.description

getEntities(options?: EntityQueryOptions): Entity[]
getEntitiesAtBlockLocation

script_api.minecraft/server.dimension.getentitiesatblocklocation.description

getEntitiesAtBlockLocation(location: Vector3): Entity[]
getPlayers

script_api.minecraft/server.dimension.getplayers.description

getPlayers(options?: EntityQueryOptions): Player[]
runCommandAsync

script_api.minecraft/server.dimension.runcommandasync.description

runCommandAsync(commandString: string): Promise<CommandResult>