Class AquiferSettings.Builder
java.lang.Object
dev.wyck.worldgen.noise.AquiferSettings.Builder
- Enclosing interface:
AquiferSettings
Builder for
AquiferSettings.- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Creates an empty aquifer settings builder.Builder(AquiferSettings settings) Creates a builder containing the values of existing aquifer settings. -
Method Summary
Modifier and TypeMethodDescriptionbarrier(DensityFunction barrier) Sets the density function used to create barriers between neighboring aquifers.build()Builds the aquifer settings.exclusion(DensityFunction exclusion) Sets the density function controlling areas excluded from aquifer generation.fluidLevelFloodedness(DensityFunction fluidLevelFloodedness) Sets the density function controlling how readily an area becomes flooded.fluidLevelSpread(DensityFunction fluidLevelSpread) Sets the density function controlling variation in aquifer fluid levels.lava(DensityFunction lava) Sets the density function controlling where aquifers contain lava.surfaceLevel(DensityFunction surfaceLevel) Sets the density function used to determine aquifer surface levels.
-
Constructor Details
-
Builder
-
Builder
Creates a builder containing the values of existing aquifer settings.- Parameters:
settings- the aquifer settings to copy- Since:
- 4.0.0
-
-
Method Details
-
barrier
Sets the density function used to create barriers between neighboring aquifers.- Parameters:
barrier- the aquifer barrier density function- Returns:
- this builder
- Since:
- 4.0.0
-
fluidLevelFloodedness
@AsOf("4.0.0") public AquiferSettings.Builder fluidLevelFloodedness(DensityFunction fluidLevelFloodedness) Sets the density function controlling how readily an area becomes flooded.- Parameters:
fluidLevelFloodedness- the fluid-level floodedness density function- Returns:
- this builder
- Since:
- 4.0.0
-
fluidLevelSpread
Sets the density function controlling variation in aquifer fluid levels.- Parameters:
fluidLevelSpread- the fluid-level spread density function- Returns:
- this builder
- Since:
- 4.0.0
-
lava
Sets the density function controlling where aquifers contain lava.- Parameters:
lava- the lava density function- Returns:
- this builder
- Since:
- 4.0.0
-
exclusion
Sets the density function controlling areas excluded from aquifer generation.- Parameters:
exclusion- the aquifer exclusion density function- Returns:
- this builder
- Since:
- 4.0.0
-
surfaceLevel
Sets the density function used to determine aquifer surface levels.- Parameters:
surfaceLevel- the aquifer surface-level density function- Returns:
- this builder
- Since:
- 4.0.0
-
build
Builds the aquifer settings.- Returns:
- the built aquifer settings
- Throws:
NullPointerException- if any required density function has not been set- Since:
- 4.0.0
-