StructureSaverAbstract

interface StructureSaverAbstract<L, V>

Interface fluent API to save structures from the world into different targets.

Functions

at
Link copied to clipboard
abstract fun at(location: L): StructureSaverAbstract<L, V>
Sets the source Location corner where the blocks start to get saved.
author
Link copied to clipboard
abstract fun author(author: String): StructureSaverAbstract<L, V>
Sets the author.
getAuthor
Link copied to clipboard
abstract fun getAuthor(): String
Gets the author.
getLocation
Link copied to clipboard
abstract fun getLocation(): L
Gets the source Location.
getOffset
Link copied to clipboard
abstract fun getOffset(): V
Gets the offset of the selection.
getRestriction
Link copied to clipboard
abstract fun getRestriction(): StructureRestriction
Gets the size restriction.
getStructureVoidTypeName
Link copied to clipboard
abstract fun getStructureVoidTypeName(): String
This internal value is no longer exposed since 1.18.2.
includeEntities
Link copied to clipboard
abstract fun includeEntities(enabled: Boolean): StructureSaverAbstract<L, V>
Should entities be included in the save file.
isIncludeEntitiesEnabled
Link copied to clipboard
abstract fun isIncludeEntitiesEnabled(): Boolean
Should entities included in the saved file.
offSet
Link copied to clipboard
abstract fun offSet(vector: V): StructureSaverAbstract<L, V>
Sets the source Vector offset where the blocks reach to get saved.
restriction
Link copied to clipboard
abstract fun restriction(structureRestriction: StructureRestriction): StructureSaverAbstract<L, V>
Restricts the structure to a certain size if a larger area is selected with offset.
saveToFile
Link copied to clipboard
abstract fun saveToFile(target: File): ProgressToken<Void>
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>
Saves the blocks and entities from the world into into a structure.nbt binary stream.
saveToPath
Link copied to clipboard
abstract fun saveToPath(target: Path): ProgressToken<Void>
Saves the blocks and entities from the world into into a structure.nbt file.
saveToString
Link copied to clipboard
abstract fun saveToString(): ProgressToken<String>
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>
Saves the blocks and entities from the world into into a structure.nbt file located in the world folder, author folder.
sizeX
Link copied to clipboard
abstract fun sizeX(x: Int): StructureSaverAbstract<L, V>
Sets the offset in x coordinate.
sizeY
Link copied to clipboard
abstract fun sizeY(y: Int): StructureSaverAbstract<L, V>
Sets the offset in y coordinate.
sizeZ
Link copied to clipboard
abstract fun sizeZ(z: Int): StructureSaverAbstract<L, V>
Sets the offset in z coordinate.
structureVoidTypeName
Link copied to clipboard
abstract fun structureVoidTypeName(name: String): StructureSaverAbstract<L, V>
This value is no longer used since 1.18.2.

Inheritors

StructureSaver
Link copied to clipboard