Class ShapeDistortion

java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.distorted.ShapeDistortion

public class ShapeDistortion extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getWidthFactor

      public double getWidthFactor(int seed, double x, double z)
      Get the width distortion noise at position xz
      Parameters:
      seed - the noise seed
      x - the x-coordinate
      z - the z-coordinate
      Returns:
      a noise value intended to modulate a shape's width
    • getFloorFactor

      public double getFloorFactor(int seed, double x, double z)
      Get the floor distortion noise at position xz
      Parameters:
      seed - the noise seed
      x - the x-coordinate
      z - the z-coordinate
      Returns:
      a noise value intended to modulate a shape's floor height
    • getCeilingFactor

      public double getCeilingFactor(int seed, double x, double z)
      Get the ceiling distortion noise at position xz
      Parameters:
      seed - the noise seed
      x - the x-coordinate
      z - the z-coordinate
      Returns:
      a noise value intended to modulate a shape's ceiling height
    • of

      public static ShapeDistortion of(@Nullable NoiseProperty widthNoise, @Nullable NoiseProperty floorNoise, @Nullable NoiseProperty ceilingNoise)