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 
Schematics.- 
Method SummaryModifier 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 newSchematicfrom 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.CopyableBuilderfrom
- 
Method Details- 
blocksSpecifies 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
- 
creatorSpecifies an extent view for the schematic to load its world data from.- Parameters:
- volume- The extent view
- Returns:
- This builder, for chaining
 
- 
volume
- 
blockPaletteSpecifies 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
 
- 
biomePaletteSpecifies 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
 
- 
blockPaletteTypeSpecifies the palette type to use if theSchematic.blockPalette()is not specified.- Parameters:
- type- The palette type
- Returns:
- This builder, for chaining
 
- 
biomePaletteTypeSpecifies 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
- 
metadataSpecifies the metadata container.- Parameters:
- metadata- The metadata container
- Returns:
- This builder, for chaining
 
- 
metaValueSpecifies a metadata value which will be included in the metadata of the schematic.- Parameters:
- key- The metadata key
- value- The value
- Returns:
- This builder, for chaining
 
- 
buildConstructs a newSchematicfrom this builder.- Specified by:
- buildin interface- AbstractBuilder<Schematic>
- Returns:
- The new schematic
- Throws:
- IllegalArgumentException- If any required data was not specified
 
 
-