Class JsonLoader<K extends SeedResource, T>

java.lang.Object
com.hypixel.hytale.procedurallib.json.Loader<K,T>
com.hypixel.hytale.procedurallib.json.JsonLoader<K,T>
Direct Known Subclasses:
AbstractCellJitterJsonLoader, BasicHeightThresholdInterpreterJsonLoader, BlendNoisePropertyJsonLoader, CellBorderDistanceFunctionJsonLoader, CellDistanceFunctionJsonLoader, CellNoiseJsonLoader, ConstantNoiseJsonLoader, CoordinateRandomizerJsonLoader, CoordinateRotatorJsonLoader, CurveNoisePropertyJsonLoader, DistanceNoiseJsonLoader, DoubleConditionJsonLoader, DoubleRangeJsonLoader, DoubleThresholdJsonLoader, FloatRangeJsonLoader, GradientNoisePropertyJsonLoader, GridNoiseJsonLoader, HeightThresholdInterpreterJsonLoader, NoiseFunctionJsonLoader, NoiseHeightThresholdInterpreterJsonLoader, NoiseMaskConditionJsonLoader, NoisePropertyJsonLoader, OldSimplexNoiseJsonLoader, PerlinNoiseJsonLoader, PointGeneratorJsonLoader, PointNoiseJsonLoader, SimplexNoiseJsonLoader, ValueNoiseJsonLoader

public abstract class JsonLoader<K extends SeedResource, T> extends Loader<K,T>
Since:
30.06.2017
  • Field Details

    • JSON_LOADER

      public static final JsonResourceLoader<com.google.gson.JsonElement> JSON_LOADER
    • JSON_ARR_LOADER

      public static final JsonResourceLoader<com.google.gson.JsonArray> JSON_ARR_LOADER
    • JSON_OBJ_LOADER

      public static final JsonResourceLoader<com.google.gson.JsonObject> JSON_OBJ_LOADER
  • Constructor Details

    • JsonLoader

      public JsonLoader(SeedString<K> seed, Path dataFolder, @Nullable com.google.gson.JsonElement json)
  • Method Details

    • has

      public boolean has(String name)
    • getOrLoad

      @Nonnull public com.google.gson.JsonElement getOrLoad(@Nonnull com.google.gson.JsonElement element)
    • get

      @Nullable public com.google.gson.JsonElement get(String name)
    • getRaw

      @Nullable public com.google.gson.JsonElement getRaw(String name)