CaveNodeChildEntryJsonLoader

public class CaveNodeChildEntryJsonLoader extends JsonLoader

Class CaveNodeChildEntryJsonLoader. Provides cavenodechildentryjsonloader functionality for the Hytale server.

java.lang.Object > JsonLoader > CaveNodeChildEntryJsonLoader

Field Summary

builder

final WeightedMap.Builder builder

Field builder.

nodeElement

final JsonElement nodeElement

Field nodeElement.

nodeArray

final JsonArray nodeArray

Field nodeArray.

weightsElement

final JsonElement weightsElement

Field weightsElement.

nodeEntryElement

final JsonElement nodeEntryElement

Field nodeEntryElement.

caveNodeType

final CaveNodeType caveNodeType

Field caveNodeType.

weight

final double weight

Field weight.

caveNodeType2

final CaveNodeType caveNodeType2

Field caveNodeType2.

caveNodeTypeName

final String caveNodeTypeName

Field caveNodeTypeName.

rotationElement

final JsonElement rotationElement

Field rotationElement.

rotationArray

final JsonArray rotationArray

Field rotationArray.

yawAdd

final IFloatRange yawAdd

Field yawAdd.

yawSet

final IFloatRange yawSet

Field yawSet.

pitchAdd

final IFloatRange pitchAdd

Field pitchAdd.

pitchSet

final IFloatRange pitchSet

Field pitchSet.

array

final JsonArray array

Field array.

Method Detail

CaveNodeChildEntryJsonLoader

public public CaveNodeChildEntryJsonLoader (@Nonnull final SeedString seed, final Path dataFolder, final JsonElement json, final CaveNodeTypeStorage storage)

Method CaveNodeChildEntryJsonLoader.

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

load

public CaveNodeType.CaveNodeChildEntry load ()

Method load.

loadNodes

protected IWeightedMap loadNodes ()

Method loadNodes.

if

public else if (nodeElement.isJsonPrimitive()

Method if.

Parameters:
nodeElement.isJsonPrimitive( nodeElement.isJsonPrimitive(

loadCaveNodeType

protected CaveNodeType loadCaveNodeType (@Nonnull final JsonElement element)

Method loadCaveNodeType.

Parameters:
@Nonnull final JsonElement element

loadAnchor

protected Vector3d loadAnchor ()

Method loadAnchor.

loadOffset

protected Vector3d loadOffset ()

Method loadOffset.

loadRotations

protected PrefabRotation[] loadRotations ()

Method loadRotations.

loadChildrenLimit

protected IDoubleRange loadChildrenLimit ()

Method loadChildrenLimit.

DoubleRangeJsonLoader

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

Method DoubleRangeJsonLoader.

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

loadRepeat

protected IDoubleRange loadRepeat ()

Method loadRepeat.

loadYawModifier

protected CaveNodeType.CaveNodeChildEntry.OrientationModifier loadYawModifier ()

Method loadYawModifier.

loadPitchModifier

protected CaveNodeType.CaveNodeChildEntry.OrientationModifier loadPitchModifier ()

Method loadPitchModifier.

loadYawAdd

protected IFloatRange loadYawAdd ()

Method loadYawAdd.

FloatRangeJsonLoader

public new FloatRangeJsonLoader (this.seed, this.dataFolder, this.get("YawAdd")

Method FloatRangeJsonLoader.

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

loadPitchAdd

protected IFloatRange loadPitchAdd ()

Method loadPitchAdd.

loadYawSet

protected IFloatRange loadYawSet ()

Method loadYawSet.

loadPitchSet

protected IFloatRange loadPitchSet ()

Method loadPitchSet.

loadChance

protected double loadChance ()

Method loadChance.

loadYawMode

protected CaveYawMode loadYawMode ()

Method loadYawMode.

loadVector

protected Vector3d loadVector (@Nonnull final Vector3d vector, @Nonnull final JsonElement jsonElement)

Method loadVector.

Parameters:
@Nonnull final Vector3d vector
@Nonnull final JsonElement jsonElement