Interface NoiseFunction

All Superinterfaces:
DensityFunction, Keyed, NoiseParameterFunction, Registerable<NoiseParameterFunction>, Wrapper
All Known Subinterfaces:
MappedNoiseFunction

@NullMarked @AsOf("3.0.0") public interface NoiseFunction extends NoiseParameterFunction
Samples a noise.
Since:
3.0.0
  • Method Details

    • xzScale

      @AsOf("3.0.0") double xzScale()
      The xz scale of the noise function.
      Returns:
      the xz scale
      Since:
      3.0.0
    • yScale

      @AsOf("3.0.0") double yScale()
      The y scale of the noise function.
      Returns:
      the y scale
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default NoiseFunction.AbstractBuilder<?> toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static NoiseFunction of(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, double xzScale, double yScale)
      Creates a new noise function.
      Parameters:
      resourceKey - the resource key, or null
      noiseParameters - the parameters of the noise
      xzScale - the xz scale of the noise function
      yScale - the y scale of the noise function
      Returns:
      a new noise function
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static NoiseFunction of(NoiseParameters noiseParameters, double xzScale, double yScale)
      Creates a new noise function.
      Parameters:
      noiseParameters - the parameters of the noise
      xzScale - the xz scale of the noise function
      yScale - the y scale of the noise function
      Returns:
      a new noise function
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static NoiseFunction.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0