Package | Description |
---|---|
org.bukkit.structure |
Classes related to creating or using
structures without creating Structure
blocks in the world. |
Modifier and Type | Method and Description |
---|---|
Structure |
StructureManager.copy(Structure structure)
Creates a copy of this structure.
|
Structure |
StructureManager.createStructure()
Creates a new empty structure.
|
Structure |
StructureManager.getStructure(NamespacedKey structureKey)
Gets a registered Structure.
|
Structure |
StructureManager.loadStructure(File file)
Reads a Structure from disk.
|
Structure |
StructureManager.loadStructure(InputStream inputStream)
Reads a Structure from a stream.
|
Structure |
StructureManager.loadStructure(NamespacedKey structureKey)
Loads the structure for the specified key and automatically registers it.
|
Structure |
StructureManager.loadStructure(NamespacedKey structureKey,
boolean register)
Loads a structure for the specified key and optionally
registers it. |
Structure |
StructureManager.registerStructure(NamespacedKey structureKey,
Structure structure)
Registers the given structure.
|
Structure |
StructureManager.unregisterStructure(NamespacedKey structureKey)
Unregisters a structure.
|
Modifier and Type | Method and Description |
---|---|
Map<NamespacedKey,Structure> |
StructureManager.getStructures()
Gets the currently registered structures.
|
Modifier and Type | Method and Description |
---|---|
Structure |
StructureManager.copy(Structure structure)
Creates a copy of this structure.
|
Structure |
StructureManager.registerStructure(NamespacedKey structureKey,
Structure structure)
Registers the given structure.
|
void |
StructureManager.saveStructure(File file,
Structure structure)
Save a structure to a file.
|
void |
StructureManager.saveStructure(NamespacedKey structureKey,
Structure structure)
Saves a structure with a given key to the primary world folder.
|
void |
StructureManager.saveStructure(OutputStream outputStream,
Structure structure)
Save a structure to a stream.
|
Copyright © 2022. All rights reserved.