Interface NoiseThresholdCountPlacement

All Superinterfaces:
PlacementModifier, Wrapper

@NullMarked @AsOf("3.0.0") public interface NoiseThresholdCountPlacement extends PlacementModifier
Returns multiple copies of the current block position. The count is either the below or above value, chosen by comparing noise(x / 200, z / 200) against the noise level: values below the level use the below count, otherwise the above count is used.
Since:
3.0.0
See Also:
  • Method Details

    • noiseLevel

      @AsOf("3.0.0") double noiseLevel()
      The threshold within the noise for when to use the below or above count.
      Returns:
      the noise level
      Since:
      3.0.0
    • belowNoise

      @AsOf("3.0.0") int belowNoise()
      The count when the noise is below the threshold. A value lower than 0 is treated as 0.
      Returns:
      the below noise count
      Since:
      3.0.0
    • aboveNoise

      @AsOf("3.0.0") int aboveNoise()
      The count when the noise is above the threshold. A value lower than 0 is treated as 0.
      Returns:
      the above noise count
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default NoiseThresholdCountPlacement.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 NoiseThresholdCountPlacement of(double noiseLevel, int belowNoise, int aboveNoise)
      Creates a new noise threshold count placement.
      Parameters:
      noiseLevel - the threshold within the noise for when to use the below or above count
      belowNoise - the count when the noise is below the threshold
      aboveNoise - the count when the noise is above the threshold
      Returns:
      a new noise threshold count placement
      Since:
      3.0.0
    • builder

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