StructureLoader
interface StructureLoader : StructureLoaderAbstract<Location, Vector, Block, Entity, World>
Content copied to clipboard
Bukkit Wrapper for StructureLoader.
Functions
getIntegrity
Link copied to clipboard
Gets the target integrity.
getLocation
Link copied to clipboard
Gets the target Location.
getMirrorType
Link copied to clipboard
Gets the target mirror type.
getRotationType
Link copied to clipboard
Gets the target rotation type.
includeBlocks
Link copied to clipboard
abstract fun includeBlocks(enabled: Boolean): StructureLoaderAbstract<L, V, B, E, W>
Content copied to clipboard
Should blocks which may or may not be included in the saved file be included in the loaded structure.
includeEntities
Link copied to clipboard
abstract fun includeEntities(enabled: Boolean): StructureLoaderAbstract<L, V, B, E, W>
Content copied to clipboard
Should entities which may or may not be included in the saved file be included in the loaded structure.
isIncludeBlocksEnabled
Link copied to clipboard
Should blocks which may or may not be included in the saved file be included in the loaded structure.
isIncludeEntitiesEnabled
Link copied to clipboard
Should entities which may or may not be included in the saved file be included in the loaded structure.
loadFromFile
Link copied to clipboard
Loads the structure blocks and entities from the given source and places the blocks at the defined position.
loadFromInputStream
Link copied to clipboard
abstract fun loadFromInputStream(source: InputStream): ProgressToken<Void>
Content copied to clipboard
Loads the structure blocks and entities from the given source and places the blocks at the defined position.
loadFromPath
Link copied to clipboard
Loads the structure blocks and entities from the given source and places the blocks at the defined position.
loadFromSaver
Link copied to clipboard
abstract fun loadFromSaver(source: StructureSaverAbstract<L, V>): ProgressToken<Void>
Content copied to clipboard
Loads the structure blocks and entities from the given source and places the blocks at the defined position.
loadFromString
Link copied to clipboard
Loads the structure blocks and entities from the given source and places the blocks at the defined position.
loadFromWorld
Link copied to clipboard
abstract fun loadFromWorld(worldName: String, author: String, name: String): ProgressToken<Void>
Content copied to clipboard
Loads the structure blocks and entities from the structure storage inside each world folder of Minecraft and places the blocks at the defined position.
mirror
Link copied to clipboard
abstract fun mirror(mirror: StructureMirror): StructureLoaderAbstract<L, V, B, E, W>
Content copied to clipboard
Sets the target mirror type.
onProcessBlock
Link copied to clipboard
abstract fun onProcessBlock(onStructurePlace: (StructurePlacePart<B, W>) -> Boolean): StructureLoaderAbstract<L, V, B, E, W>
Content copied to clipboard
Attaches a new function to the structure processor which is called for each block being placed in the world.
onProcessEntity
Link copied to clipboard
abstract fun onProcessEntity(onStructurePlace: (StructureEntity<E, L>) -> Boolean): StructureLoaderAbstract<L, V, B, E, W>
Content copied to clipboard
Attaches a new function to the structure processor which is called for each entity being placed in the world.
rotation
Link copied to clipboard
abstract fun rotation(rotation: StructureRotation): StructureLoaderAbstract<L, V, B, E, W>
Content copied to clipboard
Sets the target rotation type.