java.lang.Object
org.spongepowered.noise.module.NoiseModule
org.spongepowered.noise.module.source.Checkerboard

public class Checkerboard extends NoiseModule
Noise module that outputs a checkerboard pattern.

This noise module outputs unit-sized blocks of alternating values. The values of these blocks alternate between -1.0 and +1.0

This noise module is not really useful by itself, but it is often used for debugging purposes.

Source Modules
This module does not require any source modules.
  • Constructor Details

    • Checkerboard

      public Checkerboard()
  • Method Details

    • get

      public double get(double x, double y, double z)
      Description copied from class: NoiseModule
      Generates an output value given the coordinates of the specified input value.

      All source modules required by this module must have been connected with the NoiseModule.setSourceModule(int, NoiseModule) method. If these source modules are not connected, this method will throw a NoModuleException.

      To determine the number of source modules required by this noise module, call the NoiseModule.sourceModuleCount() method.

      Specified by:
      get in class NoiseModule
      Parameters:
      x - the x coordinate of the input value
      y - the y coordinate of the input value
      z - the z coordinate of the input value
      Returns:
      the output value