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 DensityFunctionprotected DensityFunctionprotected DensityFunctionprotected 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()shiftX(DensityFunction shiftX) Sets the X-coordinate shift.shiftY(DensityFunction shiftY) Sets the Y-coordinate shift.shiftZ(DensityFunction shiftZ) Sets the Z-coordinate shift.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 -
shiftX
-
shiftY
-
shiftZ
-
-
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
-
shiftX
Sets the X-coordinate shift.- Parameters:
shiftX- the X-coordinate shift- Returns:
- this builder
- Since:
- 4.0.0
-
shiftY
Sets the Y-coordinate shift.- Parameters:
shiftY- the Y-coordinate shift- Returns:
- this builder
- Since:
- 4.0.0
-
shiftZ
Sets the Z-coordinate shift.- Parameters:
shiftZ- the Z-coordinate shift- Returns:
- this builder
- Since:
- 4.0.0
-
build
Builds the noise function.- Returns:
- the noise function
- Since:
- 3.0.0
-