public class PerlinNoise
extends org.bukkit.util.noise.PerlinNoiseGenerator
Constructor and Description |
---|
PerlinNoise(Random rand)
Creates an instance using the given PRNG.
|
Modifier and Type | Method and Description |
---|---|
static int |
floor(double x) |
protected double[] |
get2dNoise(double[] noise,
double x,
double z,
int sizeX,
int sizeZ,
double scaleX,
double scaleZ,
double amplitude) |
protected double[] |
get3dNoise(double[] noise,
double x,
double y,
double z,
int sizeX,
int sizeY,
int sizeZ,
double scaleX,
double scaleY,
double scaleZ,
double amplitude) |
double[] |
getNoise(double[] noise,
double x,
double y,
double z,
int sizeX,
int sizeY,
int sizeZ,
double scaleX,
double scaleY,
double scaleZ,
double amplitude)
Generates a rectangular section of this generator's noise.
|
getInstance, getNoise, getNoise, getNoise, getNoise, getNoise, getNoise, noise
public PerlinNoise(Random rand)
rand
- the PRNG used to generate the seed permutationpublic static int floor(double x)
public double[] getNoise(double[] noise, double x, double y, double z, int sizeX, int sizeY, int sizeZ, double scaleX, double scaleY, double scaleZ, double amplitude)
noise
- the output of the previous noise layerx
- the X offsety
- the Y offsetz
- the Z offsetsizeX
- the size on the X axissizeY
- the size on the Y axissizeZ
- the size on the Z axisscaleX
- the X scale parameterscaleY
- the Y scale parameterscaleZ
- the Z scale parameteramplitude
- the amplitude parameternoise
with this layer of noise addedprotected double[] get2dNoise(double[] noise, double x, double z, int sizeX, int sizeZ, double scaleX, double scaleZ, double amplitude)
protected double[] get3dNoise(double[] noise, double x, double y, double z, int sizeX, int sizeY, int sizeZ, double scaleX, double scaleY, double scaleZ, double amplitude)
Copyright © 2021. All rights reserved.