public class DoubleRangeJsonLoader
Class DoubleRangeJsonLoader. Provides doublerangejsonloader functionality for the Hytale server.
java.lang.Object > DoubleRangeJsonLoader
Field Summary
array
final
JsonArray
array
Field array.
min
final
double
min
Field min.
max
final
double
max
Field max.
thresholdsJson
final
JsonArray
thresholdsJson
Field thresholdsJson.
valuesJson
final
JsonArray
valuesJson
Field valuesJson.
thresholds
final
double[]
thresholds
Field thresholds.
values
final
double[]
values
Field values.
Method Detail
DoubleRangeJsonLoader
public
public
DoubleRangeJsonLoader
(@Nonnull final SeedString seed, final Path dataFolder, final JsonElement json)
Method DoubleRangeJsonLoader.
- Parameters:
@Nonnull final SeedStringseedfinal PathdataFolderfinal JsonElementjson
if
public
else
if
(this.json.isJsonArray()
Method if.
- Parameters:
this.json.isJsonArray(this.json.isJsonArray(
IllegalStateException
public
new
IllegalStateException
(String.format("Range array contains %s values. Only 1 or 2 entries are allowed.", array.size()
Method IllegalStateException.
- Parameters:
String.format("Range array contains %s values. Only 1 or 2 entries areallowed."array.size(array.size(