Package com.welcome234.pluginsystem
Class Noise
java.lang.Object
com.welcome234.pluginsystem.Noise
This class is used for generating terrain with Simplex Noise
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Noise
public Noise(long seed)Creates Simplex Noise for the specified seed- Parameters:
seed- Seed to construct with
-
-
Method Details
-
getNoise
public double getNoise(double x)Gets the noise value at the specified 1D coordinates- Parameters:
x- X-coordinate- Returns:
- Noise value
-
getNoise
public double getNoise(double x, double y)Gets the noise value at the specified 2D coordinates- Parameters:
x- X-coordinatey- Y-coordinate- Returns:
- Noise value
-