Generic cleanup of warnings, whitespace and style.

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2011-12-25 16:02:30 +01:00
parent 98960fd73e
commit aaab1cba23
257 changed files with 1408 additions and 1152 deletions

View File

@@ -1,4 +1,3 @@
package org.bukkit.util.noise;
/**
@@ -12,7 +11,7 @@ public abstract class NoiseGenerator {
/**
* Speedy floor, faster than (int)Math.floor(x)
*
*
* @param x Value to floor
* @return Floored value
*/

View File

@@ -1,4 +1,3 @@
package org.bukkit.util.noise;
/**

View File

@@ -5,7 +5,7 @@ import org.bukkit.World;
/**
* Generates noise using the "classic" perlin generator
*
*
* @see SimplexNoiseGenerator "Improved" and faster version with slighly different results
*/
public class PerlinNoiseGenerator extends NoiseGenerator {

View File

@@ -1,4 +1,3 @@
package org.bukkit.util.noise;
import java.util.Random;

View File

@@ -1,4 +1,3 @@
package org.bukkit.util.noise;
import java.util.Random;
@@ -9,7 +8,7 @@ import org.bukkit.World;
*/
public class SimplexOctaveGenerator extends OctaveGenerator {
private double wScale = 1;
/**
* Creates a simplex octave generator for the given world
*
@@ -102,8 +101,8 @@ public class SimplexOctaveGenerator extends OctaveGenerator {
z *= zScale;
w *= wScale;
for (int i = 0; i < octaves.length; i++) {
result += ((SimplexNoiseGenerator)octaves[i]).noise(x * freq, y * freq, z * freq, w * freq) * amp;
for (NoiseGenerator octave : octaves) {
result += ((SimplexNoiseGenerator) octave).noise(x * freq, y * freq, z * freq, w * freq) * amp;
max += amp;
freq *= frequency;
amp *= amplitude;