Interface Noise

All Superinterfaces:
Wrapper
All Known Subinterfaces:
NoiseGeneratorSettings, ReferencedNoise

@NullMarked @AsOf("2.4.0") public interface Noise extends Wrapper
Represents an abstract noise function.
Since:
2.4.0
See Also:
  • Field Details

    • OVERWORLD

      static final Noise OVERWORLD
    • NETHER

      static final Noise NETHER
    • END

      static final Noise END
    • FLOATING_ISLANDS

      static final Noise FLOATING_ISLANDS
    • AMPLIFIED

      static final Noise AMPLIFIED
    • CAVES

      static final Noise CAVES
    • LARGE_BIOMES

      static final Noise LARGE_BIOMES
  • Method Details

    • resourceKey

      @AsOf("2.4.0") Optional<ResourceKey> resourceKey()
      The key of the noise function.
      Returns:
      the key of the noise function, if present
      Since:
      2.4.0
    • builder

      @AsOf("2.4.0") static NoiseGeneratorSettings.Builder builder()
      Creates a new noise generator settings builder.
      Returns:
      a new noise generator settings builder
      Since:
      2.4.0
    • reference

      @AsOf("2.4.0") static Noise reference(ResourceKey key)
      Creates a reference to a noise function with the given key.
      Parameters:
      key - the key of the noise function
      Returns:
      a reference to the noise function with the given key
      Since:
      2.4.0
    • wrap

      @AsOf("3.3.0") @Experimental default NoiseGeneratorSettings wrap()
      Resolves this object's key in Minecraft's noise-settings registry and decodes the registered value.
      Returns:
      the decoded noise-generator settings
      Throws:
      IllegalStateException - if this object has no resource key
      Since:
      3.3.0
    • decode

      @AsOf("3.3.0") static NoiseGeneratorSettings decode(Object minecraftNoise)
      Reads a Minecraft noise-generator-settings holder or value.
      Parameters:
      minecraftNoise - the holder or value to read
      Returns:
      the decoded noise settings
      Since:
      3.3.0
    • overworld

      @AsOf("2.4.0") static Noise overworld()
      The overworld noise function.
      Returns:
      the overworld noise function
      Since:
      2.4.0
    • nether

      @AsOf("2.4.0") static Noise nether()
      The nether noise function.
      Returns:
      the nether noise function
      Since:
      2.4.0
    • end

      @AsOf("2.4.0") static Noise end()
      The end noise function.
      Returns:
      the end noise function
      Since:
      2.4.0
    • floatingIslands

      @AsOf("2.4.0") static Noise floatingIslands()
      The floating islands noise function.
      Returns:
      the floating islands noise function
      Since:
      2.4.0
    • amplified

      @AsOf("2.4.0") static Noise amplified()
      The amplified noise function.
      Returns:
      the amplified noise function
      Since:
      2.4.0
    • caves

      @AsOf("2.4.0") static Noise caves()
      The caves noise function.
      Returns:
      the caves noise function
      Since:
      2.4.0
    • largeBiomes

      @AsOf("3.0.0") static Noise largeBiomes()
      The large biomes noise function.
      Returns:
      the large biomes noise function
      Since:
      3.0.0