Class MappedNoiseFunction.Builder
java.lang.Object
dev.wyck.worldgen.function.noise.NoiseFunction.AbstractBuilder<MappedNoiseFunction.Builder>
dev.wyck.worldgen.function.noise.MappedNoiseFunction.Builder
- Enclosing interface:
MappedNoiseFunction
@AsOf("3.0.0")
public static final class MappedNoiseFunction.Builder
extends NoiseFunction.AbstractBuilder<MappedNoiseFunction.Builder>
A builder for
MappedNoiseFunction. Extends NoiseFunction.AbstractBuilder so it
inherits the shared noise parameters and scale setters while adding the target range.- Since:
- 3.0.0
-
Field Summary
Fields inherited from class NoiseFunction.AbstractBuilder
noiseParameters, resourceKey, xzScale, yScale -
Method Summary
Methods inherited from class NoiseFunction.AbstractBuilder
noiseParameters, resourceKey, self, xzScale, yScale
-
Method Details
-
minTarget
Sets the minimum target value for the mapped noise function.- Parameters:
minTarget- the minimum target value- Returns:
- this builder
- Since:
- 3.0.0
-
maxTarget
Sets the maximum target value for the mapped noise function.- Parameters:
maxTarget- the maximum target value- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the mapped noise function.- Specified by:
buildin classNoiseFunction.AbstractBuilder<MappedNoiseFunction.Builder>- Returns:
- a new instance of MappedNoiseFunction
- Since:
- 3.0.0
-