NoisePropertyJsonLoader

public class NoisePropertyJsonLoader

Class NoisePropertyJsonLoader. Provides noisepropertyjsonloader functionality for the Hytale server.

java.lang.Object > NoisePropertyJsonLoader

Field Summary

noiseProperties

final NoiseProperty[] noiseProperties

Field noiseProperties.

factors

final double[] factors

Field factors.

entries

final SumNoiseProperty.Entry[] entries

Field entries.

noise

final NoiseProperty noise

Field noise.

scale

final double scale

Field scale.

noiseFormula

final NoiseFormulaProperty.NoiseFormula noiseFormula

Field noiseFormula.

range

final IDoubleRange range

Field range.

offset

final double offset

Field offset.

offsetX

final double offsetX

Field offsetX.

offsetY

final double offsetY

Field offsetY.

offsetZ

final double offsetZ

Field offsetZ.

rotation

final CoordinateRotator rotation

Field rotation.

noiseFunction

final NoiseFunction noiseFunction

Field noiseFunction.

fractalMode

final FractalNoiseProperty.FractalMode fractalMode

Field fractalMode.

octaves

final int octaves

Field octaves.

lacunarity

final double lacunarity

Field lacunarity.

persistence

final double persistence

Field persistence.

noiseFormula2

final NoiseFormulaProperty.NoiseFormula noiseFormula2

Field noiseFormula2.

scale2

final double scale2

Field scale2.

range2

final IDoubleRange range2

Field range2.

offset2

final double offset2

Field offset2.

offsetX2

final double offsetX2

Field offsetX2.

offsetY2

final double offsetY2

Field offsetY2.

offsetZ2

final double offsetZ2

Field offsetZ2.

rotation2

final CoordinateRotator rotation2

Field rotation2.

overwritten

final SeedString overwritten

Field overwritten.

array

final JsonArray array

Field array.

values

final double[] values

Field values.

Method Detail

NoisePropertyJsonLoader

public public NoisePropertyJsonLoader (@Nonnull final SeedString seed, final Path dataFolder, final JsonElement json)

Method NoisePropertyJsonLoader.

Parameters:
@Nonnull final SeedString seed
final Path dataFolder
final JsonElement json

load

public NoiseProperty load ()

Method load.

NoiseFormulaProperty

public new NoiseFormulaProperty (noise, noiseFormula.getFormula()

Method NoiseFormulaProperty.

Parameters:
noise noise
noiseFormula.getFormula( noiseFormula.getFormula(

DistortedNoiseProperty

public new DistortedNoiseProperty (noise, new CoordinateRandomizerJsonLoader(this.seed, this.dataFolder, this.get("Randomizer")

Method DistortedNoiseProperty.

Parameters:
noise noise
new CoordinateRandomizerJsonLoader(this.seed
this.dataFolder this.dataFolder
this.get("Randomizer" this.get("Randomizer"

DoubleRangeJsonLoader

public new DoubleRangeJsonLoader (this.seed, this.dataFolder, this.get("Range")

Method DoubleRangeJsonLoader.

Parameters:
this.seed this.seed
this.dataFolder this.dataFolder
this.get("Range" this.get("Range"

NormalizeNoiseProperty

public new NormalizeNoiseProperty (noise, range.getValue(0.0)

Method NormalizeNoiseProperty.

Parameters:
noise noise
range.getValue(0.0 range.getValue(0.0

CoordinateRotatorJsonLoader

public new CoordinateRotatorJsonLoader (this.seed, this.dataFolder, this.get("Rotate")

Method CoordinateRotatorJsonLoader.

Parameters:
this.seed this.seed
this.dataFolder this.dataFolder
this.get("Rotate" this.get("Rotate"

GradientNoisePropertyJsonLoader

public new GradientNoisePropertyJsonLoader (this.seed, this.dataFolder, this.json, noise)

Method GradientNoisePropertyJsonLoader.

Parameters:
this.seed this.seed
this.dataFolder this.dataFolder
this.json this.json
noise noise

CurveNoisePropertyJsonLoader

public new CurveNoisePropertyJsonLoader (this.seed, this.dataFolder, this.json, null)

Method CurveNoisePropertyJsonLoader.

Parameters:
this.seed this.seed
this.dataFolder this.dataFolder
this.json this.json
null null

BlendNoisePropertyJsonLoader

public new BlendNoisePropertyJsonLoader (this.seed, this.dataFolder, this.json)

Method BlendNoisePropertyJsonLoader.

Parameters:
this.seed this.seed
this.dataFolder this.dataFolder
this.json this.json

Error

public new Error (String.format("Could not find instructions for noise property type: %s", type)

Method Error.

Parameters:
String.format("Could not find instructions for noise property type: %s"
type type

FractalNoiseProperty

public new FractalNoiseProperty (this.loadSeed()

Method FractalNoiseProperty.

Parameters:
this.loadSeed( this.loadSeed(

SingleNoiseProperty

public new SingleNoiseProperty (this.loadSeed()

Method SingleNoiseProperty.

Parameters:
this.loadSeed( this.loadSeed(

loadSeed

protected int loadSeed ()

Method loadSeed.

loadNoiseProperties

protected NoiseProperty[] loadNoiseProperties (@Nonnull final JsonElement element)

Method loadNoiseProperties.

Parameters:
@Nonnull final JsonElement element

loadDoubleArray

protected double[] loadDoubleArray (@Nullable final JsonElement element, final int size)

Method loadDoubleArray.

Parameters:
@Nullable final JsonElement element
final int size

if

public else if (element.isJsonArray()

Method if.

Parameters:
element.isJsonArray( element.isJsonArray(

newNoiseFunctionJsonLoader

protected NoiseFunctionJsonLoader newNoiseFunctionJsonLoader (@Nonnull final SeedString seed, final Path dataFolder, final JsonElement json)

Method newNoiseFunctionJsonLoader.

Parameters:
@Nonnull final SeedString seed
final Path dataFolder
final JsonElement json

NoiseFunctionJsonLoader

public new NoiseFunctionJsonLoader ((SeedString)

Method NoiseFunctionJsonLoader.

Parameters:
(SeedString (SeedString