StructureSaverAbstract
Interface fluent API to save structures from the world into different targets.
Functions
getLocation
Link copied to clipboard
Gets the source Location.
getRestriction
Link copied to clipboard
Gets the size restriction.
getStructureVoidTypeName
Link copied to clipboard
This internal value is no longer exposed since 1.18.2.
includeEntities
Link copied to clipboard
abstract fun includeEntities(enabled: Boolean): StructureSaverAbstract<L, V>
Content copied to clipboard
Should entities be included in the save file.
isIncludeEntitiesEnabled
Link copied to clipboard
Should entities included in the saved file.
restriction
Link copied to clipboard
abstract fun restriction(structureRestriction: StructureRestriction): StructureSaverAbstract<L, V>
Content copied to clipboard
Restricts the structure to a certain size if a larger area is selected with offset.
saveToFile
Link copied to clipboard
Saves the blocks and entities from the world into into a structure.nbt file.
saveToOutputStream
Link copied to clipboard
abstract fun saveToOutputStream(target: OutputStream): ProgressToken<Void>
Content copied to clipboard
Saves the blocks and entities from the world into into a structure.nbt binary stream.
saveToPath
Link copied to clipboard
Saves the blocks and entities from the world into into a structure.nbt file.
saveToString
Link copied to clipboard
Saves the blocks and entities from the world into into a structure.nbt binary as Base64 encoded string.
saveToWorld
Link copied to clipboard
abstract fun saveToWorld(worldName: String, author: String, name: String): ProgressToken<Void>
Content copied to clipboard
Saves the blocks and entities from the world into into a structure.nbt file located in the world folder, author folder.
structureVoidTypeName
Link copied to clipboard
Content copied to clipboard
This value is no longer used since 1.18.2.