13
0
geforkt von Mirrors/Paper

Fixed static methods in PerlinNoiseGenerator

By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-07-08 14:39:20 +01:00
Ursprung 52c737b3c1
Commit 0664487563

Datei anzeigen

@ -189,7 +189,7 @@ public class PerlinNoiseGenerator extends NoiseGenerator {
* @param amplitude How much to alter the amplitude by each octave * @param amplitude How much to alter the amplitude by each octave
* @return Resulting noise * @return Resulting noise
*/ */
public double getNoise(double x, double y, int octaves, double frequency, double amplitude) { public static double getNoise(double x, double y, int octaves, double frequency, double amplitude) {
return instance.noise(x, y, octaves, frequency, amplitude); return instance.noise(x, y, octaves, frequency, amplitude);
} }
@ -204,7 +204,7 @@ public class PerlinNoiseGenerator extends NoiseGenerator {
* @param amplitude How much to alter the amplitude by each octave * @param amplitude How much to alter the amplitude by each octave
* @return Resulting noise * @return Resulting noise
*/ */
public double getNoise(double x, double y, double z, int octaves, double frequency, double amplitude) { public static double getNoise(double x, double y, double z, int octaves, double frequency, double amplitude) {
return instance.noise(x, y, z, octaves, frequency, amplitude); return instance.noise(x, y, z, octaves, frequency, amplitude);
} }
} }