java.lang.Object
org.cloudburstmc.server.level.generator.standard.generation.noise.DefaultNoiseGenerator
All Implemented Interfaces:
NoiseGenerator
Direct Known Subclasses:
OpenSimplexDefaultNoiseGenerator, PerlinDefaultNoiseGenerator, PorkianDefaultNoiseGenerator, SimplexDefaultNoiseGenerator

public abstract class DefaultNoiseGenerator extends Object implements NoiseGenerator
Author:
DaPorkchop_
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected double
     
    protected int
     
    protected double
     
    protected DoubleTriple
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.daporkchop.lib.noise.NoiseSource
    create​(@NonNull net.daporkchop.lib.random.PRandom random)
    Creates a new NoiseSource using the given PRandom.
    protected abstract net.daporkchop.lib.noise.NoiseSource
    create0​(@NonNull net.daporkchop.lib.random.PRandom random)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • scale

      protected DoubleTriple scale
    • octaves

      protected int octaves
    • factor

      protected double factor
    • offset

      protected double offset
  • Constructor Details

    • DefaultNoiseGenerator

      public DefaultNoiseGenerator()
  • Method Details

    • create

      public net.daporkchop.lib.noise.NoiseSource create(@NonNull @NonNull net.daporkchop.lib.random.PRandom random)
      Description copied from interface: NoiseGenerator
      Creates a new NoiseSource using the given PRandom.
      Specified by:
      create in interface NoiseGenerator
      Parameters:
      random - an instance of PRandom to use for generating random numbers
      Returns:
      a new NoiseSource
    • create0

      protected abstract net.daporkchop.lib.noise.NoiseSource create0(@NonNull @NonNull net.daporkchop.lib.random.PRandom random)