Interface Schematic.Builder
- All Superinterfaces:
AbstractBuilder<Schematic>
,Builder<Schematic,
,Schematic.Builder> CopyableBuilder<Schematic,
,Schematic.Builder> ResettableBuilder<Schematic,
Schematic.Builder>
- Enclosing interface:
Schematic
public static interface Schematic.Builder
extends Builder<Schematic,Schematic.Builder>, CopyableBuilder<Schematic,Schematic.Builder>
A builder for
Schematic
s.-
Method Summary
Modifier and TypeMethodDescriptionbiomePalette
(Palette<Biome, Biome> palette) Specifies a palette for the schemtic to use for serialization.biomePaletteType
(PaletteType<Biome, Biome> type) Specifies the palette type to use for biomes if thebiomePalette(Palette)
is not specified.blockEntities
(BlockEntityVolume volume) blockPalette
(Palette<BlockState, BlockType> palette) Specifies a palette for the schematic to use for serialization.Specifies the palette type to use if theSchematic.blockPalette()
is not specified.blocks
(BlockVolume volume) Specifies an archetype volume for the world data of the schematic.build()
Constructs a newSchematic
from this builder.creator
(ArchetypeVolumeCreator volume) Specifies an extent view for the schematic to load its world data from.entities
(Collection<EntityArchetypeEntry> entities) entities
(EntityArchetypeVolume volume) entity
(EntityArchetype entityArchetype) entity
(EntityArchetype entityArchetype, Vector3d position) entity
(EntityArchetypeEntry entry) Specifies the metadata container.Specifies a metadata value which will be included in the metadata of the schematic.volume
(ArchetypeVolume volume) Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
Method Details
-
blocks
Specifies an archetype volume for the world data of the schematic. This is to take part of the schematic, so it should not be referenced outside of the schematic, less modifications are going to be made also affectingthe block entity volume
.- Parameters:
volume
- The archetype volume- Returns:
- This builder, for chaining
-
blockEntities
-
entities
-
creator
Specifies an extent view for the schematic to load its world data from.- Parameters:
volume
- The extent view- Returns:
- This builder, for chaining
-
volume
-
blockPalette
Specifies a palette for the schematic to use for serialization. This overrides theblockPaletteType(PaletteType)
value.- Parameters:
palette
- The palette to use for serialization- Returns:
- This builder, for chaining
-
biomePalette
Specifies a palette for the schemtic to use for serialization. This overrides thebiomePaletteType(PaletteType)
value.- Parameters:
palette
- The palette to use for serialization- Returns:
- This builder, for chaining
-
blockPaletteType
Specifies the palette type to use if theSchematic.blockPalette()
is not specified.- Parameters:
type
- The palette type- Returns:
- This builder, for chaining
-
biomePaletteType
Specifies the palette type to use for biomes if thebiomePalette(Palette)
is not specified.- Parameters:
type
- The type of biome palette- Returns:
- This builder, for chaining
-
entity
-
entity
-
entity
-
entities
-
metadata
Specifies the metadata container.- Parameters:
metadata
- The metadata container- Returns:
- This builder, for chaining
-
metaValue
Specifies a metadata value which will be included in the metadata of the schematic.- Parameters:
key
- The metadata keyvalue
- The value- Returns:
- This builder, for chaining
-
build
Constructs a newSchematic
from this builder.- Specified by:
build
in interfaceAbstractBuilder<Schematic>
- Returns:
- The new schematic
- Throws:
IllegalArgumentException
- If any required data was not specified
-