Interface ShiftedFunction

All Superinterfaces:
DensityFunction, Keyed, NoiseParameterFunction, Registerable<NoiseParameterFunction>, Wrapper

@NullMarked @AsOf("3.0.0") public interface ShiftedFunction extends NoiseParameterFunction
A noise function that has a shift.
Since:
3.0.0
  • Method Details

    • kind

      @AsOf("3.0.0") ShiftedFunction.Kind kind()
      The kind of shift.
      Returns:
      the kind of shift
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ShiftedFunction of(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, ShiftedFunction.Kind kind)
      Creates a new shifted function.
      Parameters:
      resourceKey - the resource key, or null
      noiseParameters - the noise parameters
      kind - the kind of shift
      Returns:
      the shifted function
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ShiftedFunction of(NoiseParameters noiseParameters, ShiftedFunction.Kind kind)
      Creates a new shifted function.
      Parameters:
      noiseParameters - the noise parameters
      kind - the kind of shift
      Returns:
      the shifted function
      Since:
      3.0.0
    • shift

      @AsOf("3.0.0") static ShiftedFunction shift(NoiseParameters noiseParameters)
      Samples a noise at (x/4, y/4, z/4), then multiplies it by 4.
      Parameters:
      noiseParameters - the noise parameters
      Returns:
      the shifted function
      Since:
      3.0.0
    • shiftA

      @AsOf("3.0.0") static ShiftedFunction shiftA(NoiseParameters noiseParameters)
      Samples a noise at (x/4, 0, z/4), then multiplies it by 4.
      Parameters:
      noiseParameters - the noise parameters
      Returns:
      the shifted function
      Since:
      3.0.0
    • shiftB

      @AsOf("3.0.0") static ShiftedFunction shiftB(NoiseParameters noiseParameters)
      Samples a noise at (z/4, x/4, 0), then multiplies it by 4.
      Parameters:
      noiseParameters - the noise parameters
      Returns:
      the shifted function
      Since:
      3.0.0