CellDistanceFunctionJsonLoader

public class CellDistanceFunctionJsonLoader

Class CellDistanceFunctionJsonLoader. Provides celldistancefunctionjsonloader functionality for the Hytale server.

java.lang.Object > CellDistanceFunctionJsonLoader

Field Summary

distanceFunction

final CellDistanceFunction distanceFunction

Field distanceFunction.

Method Detail

CellDistanceFunctionJsonLoader

public public CellDistanceFunctionJsonLoader (@Nonnull final SeedString seed, final Path dataFolder, final JsonElement json, @Nullable final PointDistanceFunction pointDistanceFunction)

Method CellDistanceFunctionJsonLoader.

Parameters:
@Nonnull final SeedString seed
final Path dataFolder
final JsonElement json
@Nullable final PointDistanceFunction pointDistanceFunction

load

public CellDistanceFunction load ()

Method load.

switch

public return switch (this.measurementMode)

Method switch.

Parameters:
this.measurementMode this.measurementMode

CellBorderDistanceFunctionJsonLoader

public new CellBorderDistanceFunctionJsonLoader (this.seed, this.dataFolder, this.json, distanceFunction)

Method CellBorderDistanceFunctionJsonLoader.

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

loadCellType

protected CellType loadCellType ()

Method loadCellType.

loadDistanceFunction

protected CellDistanceFunction loadDistanceFunction ()

Method loadDistanceFunction.