Class ShiftedNoise2dFunction.Builder
java.lang.Object
dev.wyck.worldgen.function.noise.ShiftedNoise2dFunction.Builder
- Enclosing interface:
ShiftedNoise2dFunction
Builder for
ShiftedNoise2dFunction.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the shifted noise 2d density function.noiseParameters(NoiseParameters noiseParameters) Sets the noise parameters.resourceKey(@Nullable ResourceKey resourceKey) Sets the resource key.shiftX(DensityFunction shiftX) Sets the shift x density function.shiftZ(DensityFunction shiftZ) Sets the shift z density function.xzScale(double xzScale) Sets the scale factor for x and z.
-
Method Details
-
resourceKey
Sets the resource key.- Parameters:
resourceKey- the resource key- Since:
- 3.0.0
-
noiseParameters
@AsOf("3.0.0") public ShiftedNoise2dFunction.Builder noiseParameters(NoiseParameters noiseParameters) Sets the noise parameters.- Parameters:
noiseParameters- the noise parameters- Returns:
- this builder
- Since:
- 3.0.0
-
shiftX
Sets the shift x density function.- Parameters:
shiftX- the shift x density function- Returns:
- this builder
- Since:
- 3.0.0
-
shiftZ
Sets the shift z density function.- Parameters:
shiftZ- the shift z density function- Returns:
- this builder
- Since:
- 3.0.0
-
xzScale
Sets the scale factor for x and z.- Parameters:
xzScale- the scale factor- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the shifted noise 2d density function.- Returns:
- the shifted noise 2d density function
- Since:
- 3.0.0
-