default void addToVolume(final DensityBuffer buffer, final DensityVolume volume, final double xzScale, final double yScale, final float amplitude) {
15
int index = 0;
16
17
for (int indexZ = 0; indexZ < volume.sizeZ(); indexZ++) {
18
double z = volume.blockZ(indexZ) * xzScale;
19
20
for (int indexX = 0; indexX < volume.sizeX(); indexX++) {
21
double x = volume.blockX(indexX) * xzScale;
22
23
for (int indexY = 0; indexY < volume.sizeY(); indexY++) {
24
double y = volume.blockY(indexY) * yScale;
25
buffer.addTo(index, amplitude * this.get(x, y, z));
26
index++;
27
}
28
}
29
}
30
}
31
}
32
Decompiled Minecraft 26.3 source of Noise (net/minecraft/world/level/levelgen/synth/Noise.java) with Mojang official mappings, stored verbatim on the site.