Interface NoiseParameters

All Superinterfaces:
Keyed, Wrapper
All Known Subinterfaces:
ComposedNoiseParameters, ReferencedNoiseParameters

@NullMarked @AsOf("2.3.0") public interface NoiseParameters extends Wrapper, Keyed
Wrapper for noise parameters.
Since:
2.3.0
  • Method Details

    • resourceKey

      @AsOf("3.0.0") Optional<ResourceKey> resourceKey()
      The resource key of the noise parameters.
      Returns:
      the resource key of the noise parameters
      Since:
      3.0.0
    • reference

      @AsOf("3.0.0") static ReferencedNoiseParameters reference(ResourceKey key)
      Creates a reference to a noise parameters.
      Parameters:
      key - the resource key of the noise parameters
      Returns:
      a reference to the noise parameters
      Since:
      3.0.0
    • wrap

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

      @AsOf("3.0.0") static ComposedNoiseParameters.Builder composed()
      Creates a new composed noise parameters builder.
      Returns:
      a new composed noise parameters builder
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ReferencedNoiseParameters of(ResourceKey key)
      Creates a reference to a noise parameters.
      Parameters:
      key - the resource key of the noise parameters
      Returns:
      a reference to the noise parameters
      Since:
      3.0.0
    • builder

      @AsOf("2.3.0") @Obsolete static ComposedNoiseParameters.Builder builder()
      Creates a new composed noise parameters builder.
      Returns:
      a new composed noise parameters builder
      Since:
      2.3.0
    • of

      @AsOf("3.0.0") static ComposedNoiseParameters of(@Nullable ResourceKey resourceKey, int firstOctave, List<Double> amplitudes)
      Creates a new composed noise parameters.
      Parameters:
      resourceKey - the resource key of the noise parameters
      firstOctave - the first octave of the noise parameters
      amplitudes - the amplitudes of the noise parameters
      Returns:
      a new composed noise parameters
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ComposedNoiseParameters of(int firstOctave, List<Double> amplitudes)
      Creates a new composed noise parameters.
      Parameters:
      firstOctave - the first octave of the noise parameters
      amplitudes - the amplitudes of the noise parameters
      Returns:
      a new composed noise parameters
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ComposedNoiseParameters of(int firstOctave, double... amplitudes)
      Creates a new composed noise parameters.
      Parameters:
      firstOctave - the first octave of the noise parameters
      amplitudes - the amplitudes of the noise parameters
      Returns:
      a new composed noise parameters
      Since:
      3.0.0
    • decode

      @AsOf("3.3.0") static NoiseParameters decode(Object minecraftNoiseParameters)
      Reads Minecraft noise parameters, or a holder of them, into a wrapper.
      Parameters:
      minecraftNoiseParameters - the noise parameters to read
      Returns:
      the wrapper for them
      Since:
      3.3.0