Contents
Class ZoneJsonLoader
java.lang.Object
com.hypixel.hytale.procedurallib.json.Loader<SeedStringResource, Zone>
com.hypixel.hytale.procedurallib.json.JsonLoader<SeedStringResource, Zone>
com.hypixel.hytale.server.worldgen.loader.zone.ZoneJsonLoader
A json loader for loading
Zone instances from JSON data.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA container for constant values used in theZoneJsonLoader. -
Field Summary
Fields inherited from class JsonLoader
JSON_ARR_LOADER, JSON_LOADER, JSON_OBJ_LOADER -
Constructor Summary
ConstructorsConstructorDescriptionZoneJsonLoader(SeedString<SeedStringResource> seed, Path dataFolder, com.google.gson.JsonElement json, ZoneFileContext zoneContext) Default Constructor for aZoneJsonLoaderinstance. -
Method Summary
Methods inherited from class JsonLoader
get, getOrLoad, getRaw, hasMethods inherited from class Loader
getDataFolder, getSeed
-
Constructor Details
-
ZoneJsonLoader
public ZoneJsonLoader(@Nonnull SeedString<SeedStringResource> seed, @Nonnull Path dataFolder, @Nonnull com.google.gson.JsonElement json, @Nonnull ZoneFileContext zoneContext) Default Constructor for aZoneJsonLoaderinstance.- Parameters:
seed- The seed string for resource identification.dataFolder- The data folder path.json- The JSON element to load from.zoneContext- The context of the zone file being loaded.
-
-
Method Details
-
load
- Specified by:
loadin classLoader<SeedStringResource, Zone>
-