Class NoiseBasedCountPlacement.Builder
java.lang.Object
dev.wyck.worldgen.placement.NoiseBasedCountPlacement.Builder
- Enclosing interface:
NoiseBasedCountPlacement
Builder for
NoiseBasedCountPlacement.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the noise based count placement.noiseFactor(double noiseFactor) Sets the noise factor.noiseOffset(double noiseOffset) Sets the noise offset.noiseToCountRatio(int noiseToCountRatio) Sets the noise to count ratio.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
noiseToCountRatio
Sets the noise to count ratio.- Parameters:
noiseToCountRatio- ratio of noise value to count- Returns:
- this builder
- Since:
- 3.0.0
-
noiseFactor
Sets the noise factor.- Parameters:
noiseFactor- scales the noise input horizontally- Returns:
- this builder
- Since:
- 3.0.0
-
noiseOffset
Sets the noise offset.- Parameters:
noiseOffset- vertical offset of the noise- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the noise based count placement.- Returns:
- the noise based count placement
- Since:
- 3.0.0
-