Contents
Class BiomeFileContext
java.lang.Object
com.hypixel.hytale.server.worldgen.loader.context.FileContext<ZoneFileContext>
com.hypixel.hytale.server.worldgen.loader.context.BiomeFileContext
Holds contextual information about a single Biome file, including its id, name, path, and type.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class FileContext
FileContext.Constants, FileContext.Registry<T>, FileContext.RootContext -
Constructor Summary
ConstructorsConstructorDescriptionBiomeFileContext(int id, String name, Path filepath, BiomeFileContext.Type type, ZoneFileContext parent) -
Method Summary
Modifier and TypeMethodDescriptionstatic BiomeFileContext.TypegetBiomeType(AssetPath path) Derive the Type from the filepath of the Biome.getType()Methods inherited from class FileContext
getContentPath, getId, getName, getParentContext, getPath, getRoot, getRootPath
-
Constructor Details
-
BiomeFileContext
public BiomeFileContext(int id, @Nonnull String name, @Nonnull Path filepath, @Nonnull BiomeFileContext.Type type, @Nonnull ZoneFileContext parent)
-
-
Method Details
-
getType
-
getBiomeType
Derive the Type from the filepath of the Biome.- Parameters:
path- The path to the Biome file.- Returns:
- The Type for Biome file according to its filename prefix invalid input: '&' suffix.
-