Interface NoiseBasedCountPlacement

All Superinterfaces:
PlacementModifier, Wrapper

@NullMarked @AsOf("3.0.0") public interface NoiseBasedCountPlacement extends PlacementModifier
When the noise value at the current position is positive, returns multiple copies of the current block position, whose count is based on the noise value. When the noise value is negative or zero, returns empty. The count is calculated as ceil((noise(x / noiseFactor, z / noiseFactor) + noiseOffset) * noiseToCountRatio).
Since:
3.0.0
See Also:
  • Method Details

    • noiseToCountRatio

      @AsOf("3.0.0") int noiseToCountRatio()
      Ratio of noise value to count.
      Returns:
      the noise to count ratio
      Since:
      3.0.0
    • noiseFactor

      @AsOf("3.0.0") double noiseFactor()
      Scales the noise input horizontally. Higher values make for wider and more spaced out peaks.
      Returns:
      the noise factor
      Since:
      3.0.0
    • noiseOffset

      @AsOf("3.0.0") double noiseOffset()
      Vertical offset of the noise.
      Returns:
      the noise offset
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default NoiseBasedCountPlacement.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 NoiseBasedCountPlacement of(int noiseToCountRatio, double noiseFactor, double noiseOffset)
      Creates a new noise based count placement.
      Parameters:
      noiseToCountRatio - ratio of noise value to count
      noiseFactor - scales the noise input horizontally
      noiseOffset - vertical offset of the noise
      Returns:
      a new noise based count placement
      Since:
      3.0.0
    • builder

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