Interface FlatGeneratorConfig.Builder
- All Superinterfaces:
AbstractBuilder<FlatGeneratorConfig>
,Builder<FlatGeneratorConfig,
,FlatGeneratorConfig.Builder> CopyableBuilder<FlatGeneratorConfig,
,FlatGeneratorConfig.Builder> ResettableBuilder<FlatGeneratorConfig,
FlatGeneratorConfig.Builder>
- Enclosing interface:
- FlatGeneratorConfig
public static interface FlatGeneratorConfig.Builder
extends Builder<FlatGeneratorConfig,FlatGeneratorConfig.Builder>, CopyableBuilder<FlatGeneratorConfig,FlatGeneratorConfig.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionaddLayer
(int index, LayerConfig config) Adds a layer at given indexaddLayer
(LayerConfig config) Adds a layer on top.addLayers
(List<LayerConfig> layers) Adds multiple layers.biome
(RegistryReference<Biome> biome) Sets the biome.performDecoration
(boolean performDecoration) Sets whether to perform decorationspopulateLakes
(boolean populateLakes) Sets whether to populate lakesremoveLayer
(int index) Removes a layer at given indexstructureSets
(@Nullable List<StructureSet> structureSets) Sets the structure sets.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
Method Details
-
addLayer
Adds a layer at given index- Parameters:
index
- The indexconfig
- The layer configuration- Returns:
- This builder, for chaining
-
addLayer
Adds a layer on top.- Parameters:
config
- The layer configuration- Returns:
- This builder, for chaining
-
addLayers
Adds multiple layers.- Parameters:
layers
- The layers- Returns:
- This builder, for chaining
-
removeLayer
Removes a layer at given index- Parameters:
index
- The index- Returns:
- This builder, for chaining
-
biome
Sets the biome.- Parameters:
biome
- The biome- Returns:
- This builder, for chaining
-
performDecoration
Sets whether to perform decorations- Parameters:
performDecoration
- Whether to perform decorations- Returns:
- This builder, for chaining
-
populateLakes
Sets whether to populate lakes- Parameters:
populateLakes
- Whether to populate lakes- Returns:
- This builder, for chaining
-
structureSets
Sets the structure sets. If null uses all structure sets instead.- Parameters:
structureSets
- The structure sets- Returns:
- This builder, for chaining
-