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