Class PerlinNoiseGenerator.PerlinNoiseBuilder
java.lang.Object
de.articdive.jnoise.generators.noisegen.perlin.PerlinNoiseGenerator.PerlinNoiseBuilder
- All Implemented Interfaces:
NoiseSourceBuilder
- Enclosing class:
- PerlinNoiseGenerator
@NullMarked
public static final class PerlinNoiseGenerator.PerlinNoiseBuilder
extends Object
implements NoiseSourceBuilder
Builder for the
PerlinNoiseGenerator
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the NoiseSource.setFadeFunction
(FadeFunction fadeFunction) Sets the FadeFunction for thePerlinNoiseGenerator
.setInterpolation
(Interpolation interpolation) Sets the Interpolation for thePerlinNoiseGenerator
.setSeed
(long seed) Sets the seed for thePerlinNoiseGenerator
.
-
Method Details
-
setSeed
Sets the seed for thePerlinNoiseGenerator
.- Parameters:
seed
- the new seed for thePerlinNoiseGenerator
.- Returns:
PerlinNoiseGenerator.PerlinNoiseBuilder
this
-
setInterpolation
Sets the Interpolation for thePerlinNoiseGenerator
.- Parameters:
interpolation
- The newInterpolation
for thePerlinNoiseGenerator
.- Returns:
PerlinNoiseGenerator.PerlinNoiseBuilder
this
-
setFadeFunction
Sets the FadeFunction for thePerlinNoiseGenerator
.- Parameters:
fadeFunction
- the newFadeFunction
for thePerlinNoiseGenerator
.- Returns:
PerlinNoiseGenerator.PerlinNoiseBuilder
this
-
build
Description copied from interface:NoiseSourceBuilder
Builds the NoiseSource.- Specified by:
build
in interfaceNoiseSourceBuilder
- Returns:
NoiseSource
resulting from the parameters of theNoiseSourceBuilder
.
-