noiseThresholdCount

fun noiseThresholdCount(noiseLevel: Double, belowNoise: Int, aboveNoise: Int)

Adds a NoiseThresholdCountPlacement with the given noiseLevel, belowNoise and aboveNoise values to this PlacedFeature, which gets the noise value at the given position and, if the value is positive, returns the given position multiple times.

The amount of times the position is returned is determined by the following code:

double noise = Biome.BIOME_INFO_NOISE.getValue((double)pos.getX() / noiseFactor, (double)pos.getZ() / noiseFactor, false);
int count = (int)Math.ceil((noise + noiseOffset) * noiseToCountRatio);