Package org.bukkit.util.noise
Class OctaveGenerator
java.lang.Object
org.bukkit.util.noise.OctaveGenerator
- Direct Known Subclasses:
- PerlinOctaveGenerator,- SimplexOctaveGenerator
Creates noise using unbiased octaves
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets a clone of the individual octaves used within this generatordoubleGets the scale used for each X-coordinates passeddoubleGets the scale used for each Y-coordinates passeddoubleGets the scale used for each Z-coordinates passeddoublenoise(double x, double frequency, double amplitude) Generates noise for the 1D coordinates using the specified number of octaves and parametersdoublenoise(double x, double frequency, double amplitude, boolean normalized) Generates noise for the 1D coordinates using the specified number of octaves and parametersdoublenoise(double x, double y, double frequency, double amplitude) Generates noise for the 2D coordinates using the specified number of octaves and parametersdoublenoise(double x, double y, double frequency, double amplitude, boolean normalized) Generates noise for the 2D coordinates using the specified number of octaves and parametersdoublenoise(double x, double y, double z, double frequency, double amplitude) Generates noise for the 3D coordinates using the specified number of octaves and parametersdoublenoise(double x, double y, double z, double frequency, double amplitude, boolean normalized) Generates noise for the 3D coordinates using the specified number of octaves and parametersvoidsetScale(double scale) Sets the scale used for all coordinates passed to this generator.voidsetXScale(double scale) Sets the scale used for each X-coordinates passedvoidsetYScale(double scale) Sets the scale used for each Y-coordinates passedvoidsetZScale(double scale) Sets the scale used for each Z-coordinates passed
- 
Field Details- 
octaves
- 
xScaleprotected double xScale
- 
yScaleprotected double yScale
- 
zScaleprotected double zScale
 
- 
- 
Constructor Details- 
OctaveGenerator
 
- 
- 
Method Details- 
setScalepublic void setScale(double scale) Sets the scale used for all coordinates passed to this generator.This is the equivalent to setting each coordinate to the specified value. - Parameters:
- scale- New value to scale each coordinate by
 
- 
getXScalepublic double getXScale()Gets the scale used for each X-coordinates passed- Returns:
- X scale
 
- 
setXScalepublic void setXScale(double scale) Sets the scale used for each X-coordinates passed- Parameters:
- scale- New X scale
 
- 
getYScalepublic double getYScale()Gets the scale used for each Y-coordinates passed- Returns:
- Y scale
 
- 
setYScalepublic void setYScale(double scale) Sets the scale used for each Y-coordinates passed- Parameters:
- scale- New Y scale
 
- 
getZScalepublic double getZScale()Gets the scale used for each Z-coordinates passed- Returns:
- Z scale
 
- 
setZScalepublic void setZScale(double scale) Sets the scale used for each Z-coordinates passed- Parameters:
- scale- New Z scale
 
- 
getOctavesGets a clone of the individual octaves used within this generator- Returns:
- Clone of the individual octaves
 
- 
noisepublic double noise(double x, double frequency, double amplitude) Generates noise for the 1D coordinates using the specified number of octaves and parameters- Parameters:
- x- X-coordinate
- frequency- How much to alter the frequency by each octave
- amplitude- How much to alter the amplitude by each octave
- Returns:
- Resulting noise
 
- 
noisepublic double noise(double x, double frequency, double amplitude, boolean normalized) Generates noise for the 1D coordinates using the specified number of octaves and parameters- Parameters:
- x- X-coordinate
- frequency- How much to alter the frequency by each octave
- amplitude- How much to alter the amplitude by each octave
- normalized- If true, normalize the value to [-1, 1]
- Returns:
- Resulting noise
 
- 
noisepublic double noise(double x, double y, double frequency, double amplitude) Generates noise for the 2D coordinates using the specified number of octaves and parameters- Parameters:
- x- X-coordinate
- y- Y-coordinate
- frequency- How much to alter the frequency by each octave
- amplitude- How much to alter the amplitude by each octave
- Returns:
- Resulting noise
 
- 
noisepublic double noise(double x, double y, double frequency, double amplitude, boolean normalized) Generates noise for the 2D coordinates using the specified number of octaves and parameters- Parameters:
- x- X-coordinate
- y- Y-coordinate
- frequency- How much to alter the frequency by each octave
- amplitude- How much to alter the amplitude by each octave
- normalized- If true, normalize the value to [-1, 1]
- Returns:
- Resulting noise
 
- 
noisepublic double noise(double x, double y, double z, double frequency, double amplitude) Generates noise for the 3D coordinates using the specified number of octaves and parameters- Parameters:
- x- X-coordinate
- y- Y-coordinate
- z- Z-coordinate
- frequency- How much to alter the frequency by each octave
- amplitude- How much to alter the amplitude by each octave
- Returns:
- Resulting noise
 
- 
noisepublic double noise(double x, double y, double z, double frequency, double amplitude, boolean normalized) Generates noise for the 3D coordinates using the specified number of octaves and parameters- Parameters:
- x- X-coordinate
- y- Y-coordinate
- z- Z-coordinate
- frequency- How much to alter the frequency by each octave
- amplitude- How much to alter the amplitude by each octave
- normalized- If true, normalize the value to [-1, 1]
- Returns:
- Resulting noise
 
 
-