Package com.sk89q.worldedit.math.noise
Class RandomNoise
java.lang.Object
com.sk89q.worldedit.math.noise.RandomNoise
- All Implemented Interfaces:
NoiseGenerator
Generates noise using
Random
. Every time a noise
generating function is called, a new value will be returned.-
Constructor Summary
ConstructorDescriptionCreate a new noise generator with a newly constructedRandom
instance.RandomNoise
(Random random) Create a new noise generator using the givenRandom
. -
Method Summary
-
Constructor Details
-
RandomNoise
Create a new noise generator using the givenRandom
.- Parameters:
random
- the random instance
-
RandomNoise
public RandomNoise()Create a new noise generator with a newly constructedRandom
instance.
-
-
Method Details
-
noise
Description copied from interface:NoiseGenerator
Get the noise value for the given position. The returned value may change on every future call for the same position.- Specified by:
noise
in interfaceNoiseGenerator
- Parameters:
position
- the position- Returns:
- a noise value between 0 (inclusive) and 1 (inclusive)
-
noise
Description copied from interface:NoiseGenerator
Get the noise value for the given position. The returned value may change on every future call for the same position.- Specified by:
noise
in interfaceNoiseGenerator
- Parameters:
position
- the position- Returns:
- a noise value between 0 (inclusive) and 1 (inclusive)
-