BranchNoiseJsonLoader

public class BranchNoiseJsonLoader

Class BranchNoiseJsonLoader. Provides branchnoisejsonloader functionality for the Hytale server.

java.lang.Object > BranchNoiseJsonLoader

Field Summary

resource

final T resource

Field resource.

parentCellType

final CellType parentCellType

Field parentCellType.

parentFunction

final CellDistanceFunction parentFunction

Field parentFunction.

parentEvaluator

final PointEvaluator parentEvaluator

Field parentEvaluator.

parentValue

final double parentValue

Field parentValue.

parentFade

final IDoubleRange parentFade

Field parentFade.

parentDensity

final IIntCondition parentDensity

Field parentDensity.

parentDistanceType

final DistanceNoise.Distance2Function parentDistanceType

Field parentDistanceType.

parentFormula

final NoiseFormulaProperty.NoiseFormula.Formula parentFormula

Field parentFormula.

lineCellType

final CellType lineCellType

Field lineCellType.

linePointFunction

final CellPointFunction linePointFunction

Field linePointFunction.

lineScale

final double lineScale

Field lineScale.

lineThickness

final IDoubleRange lineThickness

Field lineThickness.

lineFunction

final CellDistanceFunction lineFunction

Field lineFunction.

lineEvaluator

final PointEvaluator lineEvaluator

Field lineEvaluator.

defaultJitter

final double defaultJitter

Field defaultJitter.

jitterX

final double jitterX

Field jitterX.

jitterY

final double jitterY

Field jitterY.

jitter

final CellJitter jitter

Field jitter.

distanceMode

final DistanceCalculationMode distanceMode

Field distanceMode.

densityRange

final IDoubleCondition densityRange

Field densityRange.

direction

final BranchEvaluator.Direction direction

Field direction.

Method Detail

BranchNoiseJsonLoader

public public BranchNoiseJsonLoader (final SeedString seed, final Path dataFolder, final JsonElement json)

Method BranchNoiseJsonLoader.

Parameters:
final SeedString seed
final Path dataFolder
final JsonElement json

load

public BranchNoise load ()

Method load.

loadParentCellType

protected CellType loadParentCellType ()

Method loadParentCellType.

loadLineCellType

protected CellType loadLineCellType ()

Method loadLineCellType.

loadParentEvaluator

protected PointEvaluator loadParentEvaluator ()

Method loadParentEvaluator.

loadParentDensity

protected IIntCondition loadParentDensity ()

Method loadParentDensity.

DoubleConditionJsonLoader

public new DoubleConditionJsonLoader (this.seed, this.dataFolder, this.get("ParentDensity")

Method DoubleConditionJsonLoader.

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

loadParentDistance2Function

protected DistanceNoise.Distance2Function loadParentDistance2Function ()

Method loadParentDistance2Function.

loadParentFormula

protected NoiseFormulaProperty.NoiseFormula.Formula loadParentFormula ()

Method loadParentFormula.

loadLineEvaluator

protected PointEvaluator loadLineEvaluator (@Nonnull final CellDistanceFunction parentFunction, @Nonnull final CellPointFunction linePointFunction, final double lineScale)

Method loadLineEvaluator.

Parameters:
@Nonnull final CellDistanceFunction parentFunction
@Nonnull final CellPointFunction linePointFunction
final double lineScale

loadDouble

protected double loadDouble (final String key, final double def)

Method loadDouble.

Parameters:
final String key
final double def

loadRange

protected IDoubleRange loadRange (final String key, final double def)

Method loadRange.

Parameters:
final String key
final double def

DoubleRangeJsonLoader

public new DoubleRangeJsonLoader (this.seed, this.dataFolder, this.get(key)

Method DoubleRangeJsonLoader.

Parameters:
this.seed this.seed
this.dataFolder this.dataFolder
this.get(key this.get(key

loadEnum

public E loadEnum (final String key, @Nonnull final Function valueOf, final E def)

Method loadEnum.

Parameters:
final String key
@Nonnull final Function valueOf
final E def

getCellDistanceFunction

static CellDistanceFunction getCellDistanceFunction (@Nonnull final CellType cellType)

Method getCellDistanceFunction.

Parameters:
@Nonnull final CellType cellType

switch

public return switch (cellType)

Method switch.

Parameters:
cellType cellType

getCellPointFunction

static CellPointFunction getCellPointFunction (@Nonnull final CellType cellType)

Method getCellPointFunction.

Parameters:
@Nonnull final CellType cellType

localBuffer2d

protected ResultBuffer.ResultBuffer2d localBuffer2d ()

Method localBuffer2d.

toString

public String toString ()

Method toString.