java.lang.Object
org.cloudburstmc.server.level.generator.standard.misc.AbstractGenerationPass
org.cloudburstmc.server.level.generator.standard.generation.density.NetherDensitySource
All Implemented Interfaces:
DensitySource, GenerationPass

public class NetherDensitySource extends AbstractGenerationPass implements DensitySource
A NoiseSource that provides noise similar to that of vanilla's nether terrain.
Author:
DaPorkchop_
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.cloudburstmc.api.util.Identifier
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    get​(@NonNull BiomeMap biomes, int x, int y, int z)
    Gets the density at the given coordinates.
    org.cloudburstmc.api.util.Identifier
     
    protected void
    init0​(long levelSeed, long localSeed, StandardGenerator generator)
     

    Methods inherited from class org.cloudburstmc.server.level.generator.standard.misc.AbstractGenerationPass

    init, setSeed

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.cloudburstmc.server.level.generator.standard.generation.density.DensitySource

    get

    Methods inherited from interface org.cloudburstmc.server.level.generator.standard.misc.GenerationPass

    init
  • Field Details

    • ID

      public static final org.cloudburstmc.api.util.Identifier ID
  • Constructor Details

    • NetherDensitySource

      public NetherDensitySource()
  • Method Details

    • init0

      protected void init0(long levelSeed, long localSeed, StandardGenerator generator)
      Overrides:
      init0 in class AbstractGenerationPass
    • get

      public double get(@NonNull @NonNull BiomeMap biomes, int x, int y, int z)
      Description copied from interface: DensitySource
      Gets the density at the given coordinates.
      Specified by:
      get in interface DensitySource
      Parameters:
      biomes - a BiomeMap containing the biomes to be used in the world
      x - the X coordinate
      y - the Y coordinate
      z - the Z coordinate
      Returns:
      the density at the given coordinates
    • getId

      public org.cloudburstmc.api.util.Identifier getId()
      Specified by:
      getId in interface DensitySource
      Specified by:
      getId in interface GenerationPass
      Returns:
      the identifier of this generation pass