Class BiomeMaskJsonLoader
java.lang.Object
com.hypixel.hytale.procedurallib.json.Loader<SeedStringResource,IIntCondition>
com.hypixel.hytale.procedurallib.json.JsonLoader<SeedStringResource,IIntCondition>
com.hypixel.hytale.server.worldgen.loader.biome.BiomeMaskJsonLoader
-
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
ConstructorsConstructorDescriptionBiomeMaskJsonLoader(SeedString<SeedStringResource> seed, Path dataFolder, com.google.gson.JsonElement json, String maskName, ZoneFileContext zoneContext) -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleancollectBiomes(FileContext.Registry<BiomeFileContext> registry, String biomeName, IntConditionBuilder builder) private static Stringload()protected com.google.gson.JsonElementloadFileConstructor(String filePath) protected IIntConditionloadMask()private static StringparseBiomeName(String rule, int zoneMarker, int typeMarker) private static BiomeFileContext.TypeparseBiomeType(String rule, int marker) protected voidparseRule(String rule, IntConditionBuilder builder) private static ZoneFileContextparseZone(String rule, int marker, ZoneFileContext context) Methods inherited from class com.hypixel.hytale.procedurallib.json.JsonLoader
error, error, get, getRaw, has, isBoolean, isNumber, loadFile, loadFileElem, mustGet, mustGet, mustGetArray, mustGetBool, mustGetNumber, mustGetObject, mustGetStringMethods inherited from class com.hypixel.hytale.procedurallib.json.Loader
getDataFolder, getSeed
-
Field Details
-
zoneContext
-
fileName
-
-
Constructor Details
-
BiomeMaskJsonLoader
public BiomeMaskJsonLoader(@Nonnull SeedString<SeedStringResource> seed, Path dataFolder, com.google.gson.JsonElement json, String maskName, ZoneFileContext zoneContext)
-
-
Method Details
-
load
- Specified by:
loadin classLoader<SeedStringResource,IIntCondition>
-
loadMask
-
parseRule
-
loadFileConstructor
- Overrides:
loadFileConstructorin classJsonLoader<SeedStringResource,IIntCondition>
-
collectBiomes
private static boolean collectBiomes(@Nonnull FileContext.Registry<BiomeFileContext> registry, @Nonnull String biomeName, @Nonnull IntConditionBuilder builder) -
parseZone
@Nonnull private static ZoneFileContext parseZone(@Nonnull String rule, int marker, @Nonnull ZoneFileContext context) -
parseBiomeType
-
parseBiomeName
-
getDisplayName
-