Bukkit-API
1.7.9-R0.2
The inofficial Bukkit-API
|
Public Member Functions | |
PerlinNoiseGenerator (World world) | |
PerlinNoiseGenerator (long seed) | |
PerlinNoiseGenerator (Random rand) | |
double | noise (double x, double y, double z) |
![]() | |
double | noise (double x) |
double | noise (double x, double y) |
abstract double | noise (double x, double y, double z) |
double | noise (double x, int octaves, double frequency, double amplitude) |
double | noise (double x, int octaves, double frequency, double amplitude, boolean normalized) |
double | noise (double x, double y, int octaves, double frequency, double amplitude) |
double | noise (double x, double y, int octaves, double frequency, double amplitude, boolean normalized) |
double | noise (double x, double y, double z, int octaves, double frequency, double amplitude) |
double | noise (double x, double y, double z, int octaves, double frequency, double amplitude, boolean normalized) |
Static Public Member Functions | |
static double | getNoise (double x) |
static double | getNoise (double x, double y) |
static double | getNoise (double x, double y, double z) |
static PerlinNoiseGenerator | getInstance () |
static double | getNoise (double x, int octaves, double frequency, double amplitude) |
static double | getNoise (double x, double y, int octaves, double frequency, double amplitude) |
static double | getNoise (double x, double y, double z, int octaves, double frequency, double amplitude) |
![]() | |
static int | floor (double x) |
Static Protected Attributes | |
static final int | grad3 [][] |
Additional Inherited Members | |
![]() | |
static double | fade (double x) |
static double | lerp (double x, double y, double z) |
static double | grad (int hash, double x, double y, double z) |
![]() | |
final int | perm [] = new int[512] |
double | offsetX |
double | offsetY |
double | offsetZ |
Generates noise using the "classic" perlin generator
Definition at line 12 of file PerlinNoiseGenerator.java.
org.bukkit.util.noise.PerlinNoiseGenerator.PerlinNoiseGenerator | ( | World | world | ) |
Creates a seeded perlin noise generator for the given world
world | World to construct this generator for |
Definition at line 48 of file PerlinNoiseGenerator.java.
References org.bukkit.World.getSeed().
org.bukkit.util.noise.PerlinNoiseGenerator.PerlinNoiseGenerator | ( | long | seed | ) |
Creates a seeded perlin noise generator for the given seed
seed | Seed to construct this generator for |
Definition at line 57 of file PerlinNoiseGenerator.java.
org.bukkit.util.noise.PerlinNoiseGenerator.PerlinNoiseGenerator | ( | Random | rand | ) |
Creates a seeded perlin noise generator with the given Random
rand | Random to construct with |
Definition at line 66 of file PerlinNoiseGenerator.java.
|
static |
Gets the singleton unseeded instance of this generator
Definition at line 126 of file PerlinNoiseGenerator.java.
|
static |
Computes and returns the 1D unseeded perlin noise for the given coordinates in 1D space
x | X coordinate |
Definition at line 92 of file PerlinNoiseGenerator.java.
|
static |
Computes and returns the 2D unseeded perlin noise for the given coordinates in 2D space
x | X coordinate |
y | Y coordinate |
Definition at line 104 of file PerlinNoiseGenerator.java.
|
static |
Computes and returns the 3D unseeded perlin noise for the given coordinates in 3D space
x | X coordinate |
y | Y coordinate |
z | Z coordinate |
Definition at line 117 of file PerlinNoiseGenerator.java.
|
static |
Generates noise for the 1D coordinates using the specified number of octaves and parameters
x | X-coordinate |
octaves | Number of octaves to use |
frequency | How much to alter the frequency by each octave |
amplitude | How much to alter the amplitude by each octave |
Definition at line 183 of file PerlinNoiseGenerator.java.
|
static |
Generates noise for the 2D coordinates using the specified number of octaves and parameters
x | X-coordinate |
y | Y-coordinate |
octaves | Number of octaves to use |
frequency | How much to alter the frequency by each octave |
amplitude | How much to alter the amplitude by each octave |
Definition at line 198 of file PerlinNoiseGenerator.java.
|
static |
Generates noise for the 3D coordinates using the specified number of octaves and parameters
x | X-coordinate |
y | Y-coordinate |
z | Z-coordinate |
octaves | Number of octaves to use |
frequency | How much to alter the frequency by each octave |
amplitude | How much to alter the amplitude by each octave |
Definition at line 214 of file PerlinNoiseGenerator.java.
|
staticprotected |
Definition at line 13 of file PerlinNoiseGenerator.java.