java.lang.Object
org.cloudburstmc.server.level.generator.standard.biome.BiomeElevation
Direct Known Subclasses:
BiomeElevation.Absolute, BiomeElevation.Vanilla

public abstract class BiomeElevation extends Object
Describes the elevation range of a biome.
Author:
DaPorkchop_
  • Field Details

    • DEFAULT

      public static final BiomeElevation DEFAULT
    • height

      protected final double height
    • variation

      protected final double variation
    • normalizedHeight

      protected final double normalizedHeight
    • normalizedVariation

      protected final double normalizedVariation
  • Constructor Details

    • BiomeElevation

      public BiomeElevation(double height, double variation)
  • Method Details

    • getHeight

      public double getHeight()
      Returns:
      the raw height value
    • getVariation

      public double getVariation()
      Returns:
      the raw variation value
    • getNormalizedHeight

      public double getNormalizedHeight()
      Returns:
      the normalized height value
    • getNormalizedVariation

      public double getNormalizedVariation()
      Returns:
      the normalized variation value
    • normalizeHeight

      protected abstract double normalizeHeight(double height)
    • normalizeVariation

      protected abstract double normalizeVariation(double variation)