Interface Schematic.Builder
- 
- All Superinterfaces:
- AbstractBuilder<Schematic>,- Buildable.Builder<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 forSchematics.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Schematic.BuilderbiomePalette(Palette<Biome,Biome> palette)Specifies a palette for the schemtic to use for serialization.Schematic.BuilderbiomePaletteType(PaletteType<Biome,Biome> type)Specifies the palette type to use for biomes if thebiomePalette(Palette)is not specified.Schematic.BuilderblockEntities(BlockEntityVolume volume)Schematic.BuilderblockPalette(Palette<BlockState,BlockType> palette)Specifies a palette for the schematic to use for serialization.Schematic.BuilderblockPaletteType(PaletteType<BlockState,BlockType> type)Specifies the palette type to use if theSchematic.blockPalette()is not specified.Schematic.Builderblocks(BlockVolume volume)Specifies an archetype volume for the world data of the schematic.Schematicbuild()Constructs a newSchematicfrom this builder.Schematic.Buildercreator(ArchetypeVolumeCreator volume)Specifies an extent view for the schematic to load its world data from.Schematic.Builderentities(java.util.Collection<EntityArchetypeEntry> entities)Schematic.Builderentities(EntityArchetypeVolume volume)Schematic.Builderentity(EntityArchetype entityArchetype)Schematic.Builderentity(EntityArchetype entityArchetype, Vector3d position)Schematic.Builderentity(EntityArchetypeEntry entry)Schematic.Buildermetadata(DataView metadata)Specifies the metadata container.Schematic.BuildermetaValue(java.lang.String key, java.lang.Object value)Specifies a metadata value which will be included in the metadata of the schematic.Schematic.Buildervolume(ArchetypeVolume volume)- 
Methods inherited from interface org.spongepowered.api.util.CopyableBuilderfrom
 
- 
 
- 
- 
- 
Method Detail- 
blocksSchematic.Builder blocks(BlockVolume volume) 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
 
 - 
blockEntitiesSchematic.Builder blockEntities(BlockEntityVolume volume) 
 - 
entitiesSchematic.Builder entities(EntityArchetypeVolume volume) 
 - 
creatorSchematic.Builder creator(ArchetypeVolumeCreator volume) Specifies an extent view for the schematic to load its world data from.- Parameters:
- volume- The extent view
- Returns:
- This builder, for chaining
 
 - 
volumeSchematic.Builder volume(ArchetypeVolume volume) 
 - 
blockPaletteSchematic.Builder blockPalette(Palette<BlockState,BlockType> palette) 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
 
 - 
biomePaletteSchematic.Builder biomePalette(Palette<Biome,Biome> palette) 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
 
 - 
blockPaletteTypeSchematic.Builder blockPaletteType(PaletteType<BlockState,BlockType> type) Specifies the palette type to use if theSchematic.blockPalette()is not specified.- Parameters:
- type- The palette type
- Returns:
- This builder, for chaining
 
 - 
biomePaletteTypeSchematic.Builder biomePaletteType(PaletteType<Biome,Biome> type) 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
 
 - 
entitySchematic.Builder entity(EntityArchetype entityArchetype) 
 - 
entitySchematic.Builder entity(EntityArchetype entityArchetype, Vector3d position) 
 - 
entitySchematic.Builder entity(EntityArchetypeEntry entry) 
 - 
entitiesSchematic.Builder entities(java.util.Collection<EntityArchetypeEntry> entities) 
 - 
metadataSchematic.Builder metadata(DataView metadata) Specifies the metadata container.- Parameters:
- metadata- The metadata container
- Returns:
- This builder, for chaining
 
 - 
metaValueSchematic.Builder metaValue(java.lang.String key, java.lang.Object value) Specifies 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
 
 - 
buildSchematic build() throws java.lang.IllegalArgumentException Constructs a newSchematicfrom this builder.- Specified by:
- buildin interface- AbstractBuilder<Schematic>
- Specified by:
- buildin interface- Buildable.Builder<Schematic>
- Returns:
- The new schematic
- Throws:
- java.lang.IllegalArgumentException- If any required data was not specified
 
 
- 
 
-