ContinentThresholdsJsonLoader.java
package com.hypixel.hytale.server.worldgen.loader.climate;
import com.google.gson.JsonElement;
import com.hypixel.hytale.procedurallib.json.JsonLoader;
import com.hypixel.hytale.procedurallib.json.SeedResource;
import com.hypixel.hytale.procedurallib.json.SeedString;
import com.hypixel.hytale.server.worldgen.climate.ClimateNoise;
import java.nio.file.Path;
import javax.annotation.Nonnull;
public class ContinentThresholdsJsonLoader<K extends SeedResource> extends JsonLoader<K, ClimateNoise.Thresholds> {
public ContinentThresholdsJsonLoader(SeedString<K> seed, Path dataFolder, JsonElement json) {
super(seed, dataFolder, json);
}
@Nonnull
public ClimateNoise.Thresholds load() {
return new ClimateNoise.Thresholds(this.loadLandThreshold(), this.loadIslandThreshold(), this.loadBeachSize(), this.loadShallowOceanSize());
}
protected double loadLandThreshold() {
return .mustGetNumber(, ContinentThresholdsJsonLoader.Constants.DEFAULT_LAND).doubleValue();
}
{
.mustGetNumber(, ContinentThresholdsJsonLoader.Constants.DEFAULT_ISLAND).doubleValue();
}
{
.mustGetNumber(, ContinentThresholdsJsonLoader.Constants.DEFAULT_BEACH_SIZE).doubleValue();
}
{
.mustGetNumber(, ContinentThresholdsJsonLoader.Constants.DEFAULT_SHALLOW_OCEAN_SIZE).doubleValue();
}
{
;
;
;
;
;
;
;
;
}
}