Class NoisePropertyJsonLoader<K extends SeedResource>
java.lang.Object
com.hypixel.hytale.procedurallib.json.Loader<K,NoiseProperty>
com.hypixel.hytale.procedurallib.json.JsonLoader<K,NoiseProperty>
com.hypixel.hytale.procedurallib.json.NoisePropertyJsonLoader<K>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.hypixel.hytale.procedurallib.json.JsonLoader
jsonFields inherited from class com.hypixel.hytale.procedurallib.json.Loader
dataFolder, seed -
Constructor Summary
ConstructorsConstructorDescriptionNoisePropertyJsonLoader(SeedString<K> seed, Path dataFolder, com.google.gson.JsonElement json) -
Method Summary
Modifier and TypeMethodDescriptionload()protected double[]loadDoubleArray(com.google.gson.JsonElement element, int size) protected NoiseProperty[]loadNoiseProperties(com.google.gson.JsonElement element) protected intloadSeed()protected NoiseFunctionJsonLoadernewNoiseFunctionJsonLoader(SeedString<K> seed, Path dataFolder, com.google.gson.JsonElement json) Methods inherited from class com.hypixel.hytale.procedurallib.json.JsonLoader
error, error, get, getRaw, has, isBoolean, isNumber, loadFile, loadFileConstructor, loadFileElem, mustGet, mustGet, mustGetArray, mustGetBool, mustGetNumber, mustGetObject, mustGetStringMethods inherited from class com.hypixel.hytale.procedurallib.json.Loader
getDataFolder, getSeed
-
Constructor Details
-
NoisePropertyJsonLoader
public NoisePropertyJsonLoader(@Nonnull SeedString<K> seed, Path dataFolder, com.google.gson.JsonElement json)
-
-
Method Details
-
load
- Specified by:
loadin classLoader<K extends SeedResource,NoiseProperty>
-
loadSeed
protected int loadSeed() -
loadNoiseProperties
@Nonnull protected NoiseProperty[] loadNoiseProperties(@Nonnull com.google.gson.JsonElement element) -
loadDoubleArray
protected double[] loadDoubleArray(@Nullable com.google.gson.JsonElement element, int size) -
newNoiseFunctionJsonLoader
@Nonnull protected NoiseFunctionJsonLoader newNoiseFunctionJsonLoader(@Nonnull SeedString<K> seed, Path dataFolder, com.google.gson.JsonElement json)
-