Interface NoiseSettings

All Superinterfaces:
Wrapper

@NullMarked @AsOf("2.4.0") public interface NoiseSettings extends Wrapper
The vertical bounds used by a noise-based chunk generator.
Since:
2.4.0
  • Field Details

    • OVERWORLD

      @AsOf("2.4.0") static final NoiseSettings OVERWORLD
      The default noise bounds used by the Overworld.
    • NETHER

      @AsOf("2.4.0") static final NoiseSettings NETHER
      The default noise bounds used by the Nether.
    • END

      @AsOf("2.4.0") static final NoiseSettings END
      The default noise bounds used by the End.
    • CAVES

      @AsOf("2.4.0") static final NoiseSettings CAVES
      The default noise bounds used by the caves preset.
    • FLOATING_ISLANDS

      @AsOf("2.4.0") static final NoiseSettings FLOATING_ISLANDS
      The default noise bounds used by the floating-islands preset.
  • Method Details

    • minY

      @AsOf("2.4.0") int minY()
      The minimum y-coordinate generated by the noise generator.
      Returns:
      the minimum generation y-coordinate
      Since:
      2.4.0
    • height

      @AsOf("2.4.0") int height()
      The total vertical height generated by the noise generator.
      Returns:
      the generation height
      Since:
      2.4.0
    • toBuilder

      @AsOf("4.0.0") default NoiseSettings.Builder toBuilder()
      Converts these noise settings back to a builder.
      Returns:
      a builder containing these settings
      Since:
      4.0.0
    • of

      @AsOf("4.0.0") static NoiseSettings of(int minY, int height)
      Creates noise settings.
      Parameters:
      minY - the minimum generation y-coordinate
      height - the total generation height, which must be a multiple of 16
      Returns:
      new noise settings
      Since:
      4.0.0
    • decode

      @AsOf("3.3.0") static NoiseSettings decode(Object minecraftSettings)
      Reads Minecraft noise settings.
      Parameters:
      minecraftSettings - the Minecraft noise settings to read
      Returns:
      the decoded noise settings
      Since:
      3.3.0
    • builder

      @AsOf("2.4.0") static NoiseSettings.Builder builder()
      Creates a new noise settings builder.
      Returns:
      a new builder
      Since:
      2.4.0