Class UniqueZoneEntryJsonLoader
java.lang.Object
com.hypixel.hytale.procedurallib.json.Loader<SeedStringResource,Zone.UniqueEntry[]>
com.hypixel.hytale.procedurallib.json.JsonLoader<SeedStringResource,Zone.UniqueEntry[]>
com.hypixel.hytale.server.worldgen.loader.zone.UniqueZoneEntryJsonLoader
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.hypixel.hytale.procedurallib.json.JsonLoader
jsonFields inherited from class com.hypixel.hytale.procedurallib.json.Loader
dataFolder, seed -
Constructor Summary
ConstructorsConstructorDescriptionUniqueZoneEntryJsonLoader(SeedString<SeedStringResource> seed, Path dataFolder, com.google.gson.JsonElement json, Map<String, Zone> zoneLookup) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcollectZones(Set<String> zoneSet, com.google.gson.JsonElement json) load()protected Zone.UniqueEntryloadEntry(int index, com.google.gson.JsonObject json) protected static int[]loadParentColors(int index, 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
-
Field Details
-
zoneLookup
-
-
Constructor Details
-
UniqueZoneEntryJsonLoader
public UniqueZoneEntryJsonLoader(SeedString<SeedStringResource> seed, Path dataFolder, @Nullable com.google.gson.JsonElement json, Map<String, Zone> zoneLookup)
-
-
Method Details
-
load
- Specified by:
loadin classLoader<SeedStringResource,Zone.UniqueEntry[]>
-
loadEntry
-
loadParentColors
protected static int[] loadParentColors(int index, com.google.gson.JsonElement json) -
collectZones
-