Class NoiseRouter.Builder
java.lang.Object
dev.wyck.worldgen.noise.NoiseRouter.Builder
- Enclosing interface:
NoiseRouter
Builder for a
NoiseRouter. Each slot defaults to DensityFunction.zero() until set.- Since:
- 2.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbarrier(DensityFunction barrier) Sets the barrier slot.build()Builds the noise router.continents(DensityFunction continents) Sets the continents slot.depth(DensityFunction depth) Sets the depth slot.erosion(DensityFunction erosion) Sets the erosion slot.finalDensity(DensityFunction finalDensity) Sets the final density slot.fluidLevelFloodedness(DensityFunction fluidLevelFloodedness) Sets the fluid level floodedness slot.fluidLevelSpread(DensityFunction fluidLevelSpread) Sets the fluid level spread slot.lava(DensityFunction lava) Sets the lava slot.preliminarySurfaceLevel(DensityFunction preliminarySurfaceLevel) Sets the preliminary surface level slot.ridges(DensityFunction ridges) Sets the ridges slot.temperature(DensityFunction temperature) Sets the temperature slot.vegetation(DensityFunction vegetation) Sets the vegetation slot.veinGap(DensityFunction veinGap) Sets the vein gap slot.veinRidged(DensityFunction veinRidged) Sets the vein ridged slot.veinToggle(DensityFunction veinToggle) Sets the vein toggle slot.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
barrier
Sets the barrier slot.- Parameters:
barrier- the barrier density function- Returns:
- this builder
- Since:
- 2.4.0
-
fluidLevelFloodedness
@AsOf("2.4.0") public NoiseRouter.Builder fluidLevelFloodedness(DensityFunction fluidLevelFloodedness) Sets the fluid level floodedness slot.- Parameters:
fluidLevelFloodedness- the fluid level floodedness density function- Returns:
- this builder
- Since:
- 2.4.0
-
fluidLevelSpread
Sets the fluid level spread slot.- Parameters:
fluidLevelSpread- the fluid level spread density function- Returns:
- this builder
- Since:
- 2.4.0
-
lava
Sets the lava slot.- Parameters:
lava- the lava density function- Returns:
- this builder
- Since:
- 2.4.0
-
temperature
Sets the temperature slot.- Parameters:
temperature- the temperature density function- Returns:
- this builder
- Since:
- 2.4.0
-
vegetation
Sets the vegetation slot.- Parameters:
vegetation- the vegetation density function- Returns:
- this builder
- Since:
- 2.4.0
-
continents
Sets the continents slot.- Parameters:
continents- the continents density function- Returns:
- this builder
- Since:
- 2.4.0
-
erosion
Sets the erosion slot.- Parameters:
erosion- the erosion density function- Returns:
- this builder
- Since:
- 2.4.0
-
depth
Sets the depth slot.- Parameters:
depth- the depth density function- Returns:
- this builder
- Since:
- 2.4.0
-
ridges
Sets the ridges slot.- Parameters:
ridges- the ridges density function- Returns:
- this builder
- Since:
- 2.4.0
-
preliminarySurfaceLevel
@AsOf("2.4.0") public NoiseRouter.Builder preliminarySurfaceLevel(DensityFunction preliminarySurfaceLevel) Sets the preliminary surface level slot.- Parameters:
preliminarySurfaceLevel- the preliminary surface level density function- Returns:
- this builder
- Since:
- 2.4.0
-
finalDensity
Sets the final density slot.- Parameters:
finalDensity- the final density density function- Returns:
- this builder
- Since:
- 2.4.0
-
veinToggle
Sets the vein toggle slot.- Parameters:
veinToggle- the vein toggle density function- Returns:
- this builder
- Since:
- 2.4.0
-
veinRidged
Sets the vein ridged slot.- Parameters:
veinRidged- the vein ridged density function- Returns:
- this builder
- Since:
- 2.4.0
-
veinGap
Sets the vein gap slot.- Parameters:
veinGap- the vein gap density function- Returns:
- this builder
- Since:
- 2.4.0
-
build
Builds the noise router.- Returns:
- the noise router
- Since:
- 2.4.0
-