跳转至

Structure

文档版本:1.21.0.24

Structure类。script_api.minecraft/server.structure.description

属性

id
read-only id: string;
size
read-only size: Vector3;

方法

getBlockPermutation

script_api.minecraft/server.structure.getblockpermutation.description

getBlockPermutation(location: Vector3): BlockPermutation | undefined
getIsWaterlogged

script_api.minecraft/server.structure.getiswaterlogged.description

getIsWaterlogged(location: Vector3): boolean
isValid

script_api.minecraft/server.structure.isvalid.description

isValid(): boolean
返回值:boolean
script_api.minecraft/server.structure.isvalid.return
saveAs

script_api.minecraft/server.structure.saveas.description

saveAs(identifier: string, saveMode: StructureSaveMode): Structure
saveToWorld

script_api.minecraft/server.structure.savetoworld.description

saveToWorld(): void
返回值:void
script_api.minecraft/server.structure.savetoworld.return
setBlockPermutation

script_api.minecraft/server.structure.setblockpermutation.description

setBlockPermutation(location: Vector3, blockPermutation?: BlockPermutation): void