Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.util.noise.PerlinOctaveGenerator Class Reference
Inheritance diagram for org.bukkit.util.noise.PerlinOctaveGenerator:
org.bukkit.util.noise.OctaveGenerator

Public Member Functions

 PerlinOctaveGenerator (World world, int octaves)
 
 PerlinOctaveGenerator (long seed, int octaves)
 
 PerlinOctaveGenerator (Random rand, int octaves)
 
- Public Member Functions inherited from org.bukkit.util.noise.OctaveGenerator
void setScale (double scale)
 
double getXScale ()
 
void setXScale (double scale)
 
double getYScale ()
 
void setYScale (double scale)
 
double getZScale ()
 
void setZScale (double scale)
 
NoiseGenerator[] getOctaves ()
 
double noise (double x, double frequency, double amplitude)
 
double noise (double x, double frequency, double amplitude, boolean normalized)
 
double noise (double x, double y, double frequency, double amplitude)
 
double noise (double x, double y, double frequency, double amplitude, boolean normalized)
 
double noise (double x, double y, double z, double frequency, double amplitude)
 
double noise (double x, double y, double z, double frequency, double amplitude, boolean normalized)
 

Additional Inherited Members

- Protected Member Functions inherited from org.bukkit.util.noise.OctaveGenerator
 OctaveGenerator (NoiseGenerator[] octaves)
 
- Protected Attributes inherited from org.bukkit.util.noise.OctaveGenerator
final NoiseGenerator[] octaves
 
double xScale = 1
 
double yScale = 1
 
double zScale = 1
 

Detailed Description

Creates perlin noise through unbiased octaves

Definition at line 9 of file PerlinOctaveGenerator.java.

Constructor & Destructor Documentation

org.bukkit.util.noise.PerlinOctaveGenerator.PerlinOctaveGenerator ( World  world,
int  octaves 
)

Creates a perlin octave generator for the given world

Parameters
worldWorld to construct this generator for
octavesAmount of octaves to create

Definition at line 17 of file PerlinOctaveGenerator.java.

References org.bukkit.World.getSeed().

17  {
18  this(new Random(world.getSeed()), octaves);
19  }
org.bukkit.util.noise.PerlinOctaveGenerator.PerlinOctaveGenerator ( long  seed,
int  octaves 
)

Creates a perlin octave generator for the given world

Parameters
seedSeed to construct this generator for
octavesAmount of octaves to create

Definition at line 27 of file PerlinOctaveGenerator.java.

27  {
28  this(new Random(seed), octaves);
29  }
org.bukkit.util.noise.PerlinOctaveGenerator.PerlinOctaveGenerator ( Random  rand,
int  octaves 
)

Creates a perlin octave generator for the given Random

Parameters
randRandom object to construct this generator for
octavesAmount of octaves to create

Definition at line 37 of file PerlinOctaveGenerator.java.

37  {
38  super(createOctaves(rand, octaves));
39  }

The documentation for this class was generated from the following file: