Class FlatLevelGeneratorSettings.Builder
java.lang.Object
dev.wyck.worldgen.chunk.flat.FlatLevelGeneratorSettings.Builder
- Enclosing interface:
FlatLevelGeneratorSettings
Builder for
FlatLevelGeneratorSettings.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLakes(boolean addLakes) Sets whether lakes should be generated.Sets the biome.build()Builds the FlatLevelGeneratorSettings.decoration(boolean decoration) Sets whether decorations should be generated.fallbackBiome(Biome fallbackBiome) Sets the fallback biome.lake(PlacedFeature lake) Adds a lake to the list of lakes.lakes(List<PlacedFeature> lakes) Sets the lakes to generate.Adds a layer to the list of layers.layers(List<FlatLayerInfo> layers) Sets the layers.structure(ResourceKey... structure) Adds a structure to the list of structures.structures(Set<ResourceKey> structures) Sets the keys of structures to generate.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
layers
Sets the layers.- Parameters:
layers- the layers- Returns:
- this builder
- Since:
- 3.0.0
-
decoration
Sets whether decorations should be generated.- Parameters:
decoration- whether decorations should be generated- Returns:
- this builder
- Since:
- 3.0.0
-
addLakes
Sets whether lakes should be generated.- Parameters:
addLakes- whether lakes should be generated- Returns:
- this builder
- Since:
- 3.0.0
-
biome
Sets the biome.- Parameters:
biome- the biome- Returns:
- this builder
- Since:
- 3.0.0
-
fallbackBiome
Sets the fallback biome.- Parameters:
fallbackBiome- the fallback biome- Returns:
- this builder
- Since:
- 3.0.0
-
lakes
Sets the lakes to generate.- Parameters:
lakes- the lakes to generate- Returns:
- this builder
- Since:
- 3.0.0
-
structures
Sets the keys of structures to generate.- Parameters:
structures- the keys of structures to generate- Returns:
- this builder
- Since:
- 3.0.0
-
layer
Adds a layer to the list of layers.- Parameters:
block- the block to addheight- the height of the layer- Returns:
- this builder
- Since:
- 3.0.0
-
lake
Adds a lake to the list of lakes.- Parameters:
lake- the lake to add- Returns:
- this builder
- Since:
- 3.0.0
-
structure
Adds a structure to the list of structures.- Parameters:
structure- the structure to add- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the FlatLevelGeneratorSettings.- Returns:
- the FlatLevelGeneratorSettings
- Since:
- 3.0.0
-