Interface ShiftedNoise2dFunction

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

@NullMarked @AsOf("3.0.0") public interface ShiftedNoise2dFunction extends NoiseParameterFunction
Wraps shifted noise 2d density functions.
Since:
3.0.0
  • Method Details

    • shiftX

      @AsOf("3.0.0") DensityFunction shiftX()
      Shift x density function.
      Returns:
      the shift x density function
      Since:
      3.0.0
    • shiftZ

      @AsOf("3.0.0") DensityFunction shiftZ()
      Shift z density function.
      Returns:
      the shift z density function
      Since:
      3.0.0
    • xzScale

      double xzScale()
      Scale factor for x and z.
      Returns:
      the scale factor
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default ShiftedNoise2dFunction.Builder 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 ShiftedNoise2dFunction of(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, DensityFunction shiftX, DensityFunction shiftZ, double xzScale)
      Creates a new shifted noise 2d density function.
      Parameters:
      resourceKey - the resource key, or null
      noiseParameters - the noise parameters
      shiftX - the shift x density function
      shiftZ - the shift z density function
      xzScale - the scale factor for x and z
      Returns:
      a new shifted noise 2d density function
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ShiftedNoise2dFunction of(NoiseParameters noiseParameters, DensityFunction shiftX, DensityFunction shiftZ, double xzScale)
      Creates a new shifted noise 2d density function.
      Parameters:
      noiseParameters - the noise parameters
      shiftX - the shift x density function
      shiftZ - the shift z density function
      xzScale - the scale factor for x and z
      Returns:
      a new shifted noise 2d density function
      Since:
      3.0.0
    • builder

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