mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Fixed static methods in PerlinNoiseGenerator
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user