Generic cleaning

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2012-01-15 14:37:30 +01:00
parent 8377ee22f8
commit 4c80a49933
61 changed files with 245 additions and 272 deletions

View File

@@ -15,7 +15,7 @@ public abstract class OctaveGenerator {
/**
* Sets the scale used for all coordinates passed to this generator.
*
* <p />
* This is the equivalent to setting each coordinate to the specified value.
*
* @param scale New value to scale each coordinate by
@@ -176,8 +176,8 @@ public abstract class OctaveGenerator {
y *= yScale;
z *= zScale;
for (int i = 0; i < octaves.length; i++) {
result += octaves[i].noise(x * freq, y * freq, z * freq) * amp;
for (NoiseGenerator octave : octaves) {
result += octave.noise(x * freq, y * freq, z * freq) * amp;
max += amp;
freq *= frequency;
amp *= amplitude;

View File

@@ -5,7 +5,7 @@ import org.bukkit.World;
/**
* Generates simplex-based noise.
*
* <p />
* This is a modified version of the freely published version in the paper by
* Stefan Gustavson at http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
*/