public static interface Schematic.Builder extends ResettableBuilder<Schematic,Schematic.Builder>
Schematics.| Modifier and Type | Method and Description |
|---|---|
default Schematic.Builder |
biomePalette(Palette<BiomeType> palette)
Specifies a palette for the schemtic to use for serialization.
|
default Schematic.Builder |
biomePaletteType(PaletteType<BiomeType> type)
Specifies the palette type to use for biomes if the
biomePalette(Palette)
is not specified. |
default Schematic.Builder |
blockPalette(Palette<BlockState> palette)
Specifies a palette for the schematic to use for serialization.
|
default Schematic.Builder |
blockPaletteType(PaletteType<BlockState> type)
Specifies the palette type to use if the
palette(org.spongepowered.api.world.schematic.BlockPalette) is not
specified. |
Schematic |
build()
Constructs a new
Schematic from this builder. |
default Schematic.Builder |
entities(Collection<EntityArchetype> entities) |
default Schematic.Builder |
entity(EntityArchetype entityArchetype) |
default Schematic.Builder |
entity(EntityArchetype entityArchetype,
com.flowpowered.math.vector.Vector3d position) |
Schematic.Builder |
metadata(DataView metadata)
Specifies the metadata container.
|
Schematic.Builder |
metaValue(String key,
Object value)
Specifies a metadata value which will be included in the metadata of
the schematic.
|
Schematic.Builder |
palette(BlockPalette palette)
Deprecated.
|
Schematic.Builder |
paletteType(BlockPaletteType type)
Deprecated.
|
Schematic.Builder |
volume(ArchetypeVolume volume)
Specifies an archetype volume for the world data of the schematic.
|
Schematic.Builder |
volume(Extent volume)
Specifies an extent view for the schematic to load its world data
from.
|
from, resetSchematic.Builder volume(ArchetypeVolume volume)
If purely creating a schematic it is recommended to instead use
the volume(Extent) method and pass in an extent view (See
Extent.getExtentView(com.flowpowered.math.vector.Vector3i, com.flowpowered.math.vector.Vector3i)) of the volume to prevent creating
multiple copies of the world data. Likewise, if BiomeTypes
are needed to be copied, only volume(Extent) will support
copying the BiomeTypes at the desired positions. This also
has the same limit for capturing EntityArchetypes, unless
otherwise manually placed in with entity(EntityArchetype).
volume - The archetype volumeSchematic.Builder volume(Extent volume)
volume - The extent view@Deprecated Schematic.Builder palette(BlockPalette palette)
blockPalette(Palette)paletteType(org.spongepowered.api.world.schematic.BlockPaletteType) value.palette - The palette to use for serializationdefault Schematic.Builder blockPalette(Palette<BlockState> palette)
paletteType(org.spongepowered.api.world.schematic.BlockPaletteType) value.palette - The palette to use for serializationdefault Schematic.Builder biomePalette(Palette<BiomeType> palette)
palette - The palette to use for serialization@Deprecated Schematic.Builder paletteType(BlockPaletteType type)
blockPaletteType(PaletteType)palette(org.spongepowered.api.world.schematic.BlockPalette) is not
specified.type - The palette typedefault Schematic.Builder blockPaletteType(PaletteType<BlockState> type)
palette(org.spongepowered.api.world.schematic.BlockPalette) is not
specified.type - The palette typedefault Schematic.Builder biomePaletteType(PaletteType<BiomeType> type)
biomePalette(Palette)
is not specified.type - The type of biome palettedefault Schematic.Builder entity(EntityArchetype entityArchetype)
default Schematic.Builder entity(EntityArchetype entityArchetype, com.flowpowered.math.vector.Vector3d position)
default Schematic.Builder entities(Collection<EntityArchetype> entities)
Schematic.Builder metadata(DataView metadata)
metadata - The metadata containerSchematic.Builder metaValue(String key, Object value)
key - The metadata keyvalue - The valueSchematic build() throws IllegalArgumentException
Schematic from this builder.IllegalArgumentException - If any required data was not
specified