StructureManager
¶
文档版本:1.21.60.21
StructureManager
类。script_api.minecraft/server.structuremanager.description
方法¶
createEmpty
script_api.minecraft/server.structuremanager.createempty.description
identifier
:string
- script_api.minecraft/server.structuremanager.createempty.identifier.description
saveMode
:StructureSaveMode
=0
- script_api.minecraft/server.structuremanager.createempty.savemode.description
- 返回值:
Structure
- script_api.minecraft/server.structuremanager.createempty.return
createFromWorld
script_api.minecraft/server.structuremanager.createfromworld.description
createFromWorld(identifier: string, dimension: Dimension, from: Vector3, to: Vector3, options?: StructureCreateOptions): Structure
identifier
:string
- script_api.minecraft/server.structuremanager.createfromworld.identifier.description
dimension
:Dimension
- script_api.minecraft/server.structuremanager.createfromworld.dimension.description
options
?:StructureCreateOptions
=null
- script_api.minecraft/server.structuremanager.createfromworld.options.description
delete
script_api.minecraft/server.structuremanager.delete.description
structure
:string
|Structure
- script_api.minecraft/server.structuremanager.delete.structure.description
- 返回值:
boolean
- script_api.minecraft/server.structuremanager.delete.return
get
script_api.minecraft/server.structuremanager.get.description
identifier
:string
- script_api.minecraft/server.structuremanager.get.identifier.description
- 返回值:
Structure
|undefined
- script_api.minecraft/server.structuremanager.get.return
getWorldStructureIds
script_api.minecraft/server.structuremanager.getworldstructureids.description
- 返回值:
string[]
- script_api.minecraft/server.structuremanager.getworldstructureids.return
place
script_api.minecraft/server.structuremanager.place.description
place(structure: string | Structure, dimension: Dimension, location: Vector3, options?: StructurePlaceOptions): void
structure
:string
|Structure
- script_api.minecraft/server.structuremanager.place.structure.description
dimension
:Dimension
- script_api.minecraft/server.structuremanager.place.dimension.description
location
:Vector3
- script_api.minecraft/server.structuremanager.place.location.description
options
?:StructurePlaceOptions
=null
- script_api.minecraft/server.structuremanager.place.options.description
- 返回值:
void
- script_api.minecraft/server.structuremanager.place.return
placeJigsaw
script_api.minecraft/server.structuremanager.placejigsaw.description
placeJigsaw(pool: string, targetJigsaw: string, maxDepth: int32, dimension: Dimension, location: Vector3, options?: JigsawPlaceOptions): BoundingBox
pool
:string
- script_api.minecraft/server.structuremanager.placejigsaw.pool.description
targetJigsaw
:string
- script_api.minecraft/server.structuremanager.placejigsaw.targetjigsaw.description
maxDepth
:int32
∈[1
,20
]- script_api.minecraft/server.structuremanager.placejigsaw.maxdepth.description
dimension
:Dimension
- script_api.minecraft/server.structuremanager.placejigsaw.dimension.description
location
:Vector3
- script_api.minecraft/server.structuremanager.placejigsaw.location.description
options
?:JigsawPlaceOptions
=null
- script_api.minecraft/server.structuremanager.placejigsaw.options.description
- 返回值:
BoundingBox
- script_api.minecraft/server.structuremanager.placejigsaw.return
placeJigsawStructure
script_api.minecraft/server.structuremanager.placejigsawstructure.description
placeJigsawStructure(identifier: string, dimension: Dimension, location: Vector3, options?: JigsawStructurePlaceOptions): BoundingBox
identifier
:string
- script_api.minecraft/server.structuremanager.placejigsawstructure.identifier.description
dimension
:Dimension
- script_api.minecraft/server.structuremanager.placejigsawstructure.dimension.description
location
:Vector3
- script_api.minecraft/server.structuremanager.placejigsawstructure.location.description
options
?:JigsawStructurePlaceOptions
=null
- script_api.minecraft/server.structuremanager.placejigsawstructure.options.description