ClimateRuleJsonLoader

public class ClimateRuleJsonLoader

Class ClimateRuleJsonLoader. Provides climaterulejsonloader functionality for the Hytale server.

java.lang.Object > ClimateRuleJsonLoader

Field Summary

json

final JsonObject json

Field json.

target

final double target

Field target.

radius

final double radius

Field radius.

weight

final double weight

Field weight.

Method Detail

ClimateRuleJsonLoader

public public ClimateRuleJsonLoader (final SeedString seed, final Path dataFolder, @Nullable final JsonElement json)

Method ClimateRuleJsonLoader.

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

load

public ClimateSearch.Rule load ()

Method load.

loadRange

protected ClimateSearch.Range loadRange (final String key)

Method loadRange.

Parameters:
final String key

loadTarget

static double loadTarget (@Nonnull final JsonObject json)

Method loadTarget.

Parameters:
@Nonnull final JsonObject json

loadRadius

static double loadRadius (@Nonnull final JsonObject json)

Method loadRadius.

Parameters:
@Nonnull final JsonObject json

loadWeight

static double loadWeight (@Nonnull final JsonObject json)

Method loadWeight.

Parameters:
@Nonnull final JsonObject json