|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.util.noise.OctaveGenerator org.bukkit.util.noise.SimplexOctaveGenerator
public class SimplexOctaveGenerator
Creates simplex noise through unbiased octaves
Field Summary |
---|
Fields inherited from class org.bukkit.util.noise.OctaveGenerator |
---|
octaves, xScale, yScale, zScale |
Constructor Summary | |
---|---|
SimplexOctaveGenerator(long seed,
int octaves)
Creates a simplex octave generator for the given world |
|
SimplexOctaveGenerator(Random rand,
int octaves)
Creates a simplex octave generator for the given Random |
|
SimplexOctaveGenerator(World world,
int octaves)
Creates a simplex octave generator for the given world |
Method Summary | |
---|---|
double |
getWScale()
Gets the scale used for each W-coordinates passed |
double |
noise(double x,
double y,
double z,
double w,
double frequency,
double amplitude)
Generates noise for the 3D coordinates using the specified number of octaves and parameters |
double |
noise(double x,
double y,
double z,
double w,
double frequency,
double amplitude,
boolean normalized)
Generates noise for the 3D coordinates using the specified number of octaves and parameters |
void |
setScale(double scale)
Sets the scale used for all coordinates passed to this generator. |
void |
setWScale(double scale)
Sets the scale used for each W-coordinates passed |
Methods inherited from class org.bukkit.util.noise.OctaveGenerator |
---|
getOctaves, getXScale, getYScale, getZScale, noise, noise, noise, noise, noise, noise, setXScale, setYScale, setZScale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimplexOctaveGenerator(World world, int octaves)
world
- World to construct this generator foroctaves
- Amount of octaves to createpublic SimplexOctaveGenerator(long seed, int octaves)
seed
- Seed to construct this generator foroctaves
- Amount of octaves to createpublic SimplexOctaveGenerator(Random rand, int octaves)
Random
rand
- Random object to construct this generator foroctaves
- Amount of octaves to createMethod Detail |
---|
public void setScale(double scale)
OctaveGenerator
This is the equivalent to setting each coordinate to the specified value.
setScale
in class OctaveGenerator
scale
- New value to scale each coordinate bypublic double getWScale()
public void setWScale(double scale)
scale
- New W scalepublic double noise(double x, double y, double z, double w, double frequency, double amplitude)
x
- X-coordinatey
- Y-coordinatez
- Z-coordinatew
- W-coordinatefrequency
- How much to alter the frequency by each octaveamplitude
- How much to alter the amplitude by each octave
public double noise(double x, double y, double z, double w, double frequency, double amplitude, boolean normalized)
x
- X-coordinatey
- Y-coordinatez
- Z-coordinatew
- W-coordinatefrequency
- How much to alter the frequency by each octaveamplitude
- How much to alter the amplitude by each octavenormalized
- If true, normalize the value to [-1, 1]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |