public class PerlinOctaveGenerator
extends org.bukkit.util.noise.OctaveGenerator
| Modifier and Type | Field and Description |
|---|---|
protected double[] |
noise |
protected int |
sizeX |
protected int |
sizeY |
protected int |
sizeZ |
| Constructor and Description |
|---|
PerlinOctaveGenerator(org.bukkit.util.noise.NoiseGenerator[] octaves,
Random rand,
int sizeX,
int sizeY,
int sizeZ)
Creates a generator for multiple layers of Perlin noise.
|
PerlinOctaveGenerator(Random rand,
int octaves,
int sizeX,
int sizeZ) |
PerlinOctaveGenerator(Random rand,
int octaves,
int sizeX,
int sizeY,
int sizeZ) |
| Modifier and Type | Method and Description |
|---|---|
protected static org.bukkit.util.noise.NoiseGenerator[] |
createOctaves(Random rand,
int octaves) |
protected static long |
floor(double x) |
double[] |
getFractalBrownianMotion(double x,
double z,
double lacunarity,
double persistence)
Generates multiple layers of noise.
|
double[] |
getFractalBrownianMotion(double x,
double y,
double z,
double lacunarity,
double persistence)
Generates multiple layers of noise.
|
int |
getSizeX() |
int |
getSizeY() |
int |
getSizeZ() |
protected final int sizeX
protected final int sizeY
protected final int sizeZ
protected double[] noise
public PerlinOctaveGenerator(Random rand, int octaves, int sizeX, int sizeZ)
public PerlinOctaveGenerator(Random rand, int octaves, int sizeX, int sizeY, int sizeZ)
public PerlinOctaveGenerator(org.bukkit.util.noise.NoiseGenerator[] octaves,
Random rand,
int sizeX,
int sizeY,
int sizeZ)
octaves - the noise generatorsrand - the PRNGsizeX - the size on the X axissizeY - the size on the Y axissizeZ - the size on the Z axisprotected static org.bukkit.util.noise.NoiseGenerator[] createOctaves(Random rand, int octaves)
protected static long floor(double x)
public double[] getFractalBrownianMotion(double x,
double z,
double lacunarity,
double persistence)
x - the starting X coordinatez - the starting Z coordinatelacunarity - layer n's frequency as a fraction of layer n - 1's frequencypersistence - layer n's amplitude as a multiple of layer n - 1's amplitudepublic double[] getFractalBrownianMotion(double x,
double y,
double z,
double lacunarity,
double persistence)
x - the starting X coordinatey - the starting Y coordinatez - the starting Z coordinatelacunarity - layer n's frequency as a fraction of layer n - 1's frequencypersistence - layer n's amplitude as a multiple of layer n - 1's amplitudepublic int getSizeX()
public int getSizeY()
public int getSizeZ()
Copyright © 2021. All rights reserved.