Class Noise

java.lang.Object
com.welcome234.pluginsystem.Noise

public class Noise extends Object
This class is used for generating terrain with Simplex Noise
  • Constructor Summary

    Constructors
    Constructor
    Description
    Noise​(long seed)
    Creates Simplex Noise for the specified seed
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getNoise​(double x)
    Gets the noise value at the specified 1D coordinates
    double
    getNoise​(double x, double y)
    Gets the noise value at the specified 2D coordinates

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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-coordinate
      y - Y-coordinate
      Returns:
      Noise value