Class NoiseFunction.AbstractBuilder<B extends NoiseFunction.AbstractBuilder<B>>
java.lang.Object
dev.wyck.worldgen.function.noise.NoiseFunction.AbstractBuilder<B>
- Type Parameters:
B- the concrete builder subtype
- Direct Known Subclasses:
MappedNoiseFunction.Builder, NoiseFunction.Builder
- Enclosing interface:
NoiseFunction
@AsOf("3.0.0")
public abstract static class NoiseFunction.AbstractBuilder<B extends NoiseFunction.AbstractBuilder<B>>
extends Object
The shared base for
NoiseFunction builders.- Since:
- 3.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable NoiseParametersprotected @Nullable ResourceKeyprotected doubleprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract NoiseFunctionbuild()Builds the noise function.noiseParameters(NoiseParameters noiseParameters) Sets the parameters of the noise.resourceKey(ResourceKey resourceKey) Sets the resource key.protected Bself()xzScale(double xzScale) Sets the xz scale of the noise function.yScale(double yScale) Sets the y scale of the noise function.
-
Field Details
-
resourceKey
-
noiseParameters
-
xzScale
protected double xzScale -
yScale
protected double yScale
-
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder() -
AbstractBuilder
-
-
Method Details
-
self
-
resourceKey
Sets the resource key.- Parameters:
resourceKey- the resource key- Returns:
- this builder
- Since:
- 3.0.0
-
noiseParameters
Sets the parameters of the noise.- Parameters:
noiseParameters- the parameters of the noise- Returns:
- this builder
- Since:
- 3.0.0
-
xzScale
-
yScale
-
build
Builds the noise function.- Returns:
- the noise function
- Since:
- 3.0.0
-