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 SeedStringseedfinal PathdataFolderfinal JsonElementjsonfinal CaveNodeTypeStoragestorage
load
public
CaveNodeType.CaveNodeChildEntry
load
()
Method load.
if
public
else
if
(nodeElement.isJsonPrimitive()
Method if.
- Parameters:
nodeElement.isJsonPrimitive(nodeElement.isJsonPrimitive(
loadCaveNodeType
Method loadCaveNodeType.
- Parameters:
@Nonnull final JsonElementelement
loadRotations
protected
PrefabRotation[]
loadRotations
()
Method loadRotations.
DoubleRangeJsonLoader
public
new
DoubleRangeJsonLoader
(this.seed, this.dataFolder, this.get("ChildrenLimit")
Method DoubleRangeJsonLoader.
- Parameters:
this.seedthis.seedthis.dataFolderthis.dataFolderthis.get("ChildrenLimit"this.get("ChildrenLimit"
loadYawModifier
protected
CaveNodeType.CaveNodeChildEntry.OrientationModifier
loadYawModifier
()
Method loadYawModifier.
loadPitchModifier
protected
CaveNodeType.CaveNodeChildEntry.OrientationModifier
loadPitchModifier
()
Method loadPitchModifier.
FloatRangeJsonLoader
public
new
FloatRangeJsonLoader
(this.seed, this.dataFolder, this.get("YawAdd")
Method FloatRangeJsonLoader.
- Parameters:
this.seedthis.seedthis.dataFolderthis.dataFolderthis.get("YawAdd"this.get("YawAdd"
loadChance
protected
double
loadChance
()
Method loadChance.
loadVector
protected
Vector3d
loadVector
(@Nonnull final Vector3d vector, @Nonnull final JsonElement jsonElement)
Method loadVector.
- Parameters:
@Nonnull final Vector3dvector@Nonnull final JsonElementjsonElement