Class FileContextLoader
java.lang.Object
com.hypixel.hytale.server.worldgen.loader.context.FileContextLoader
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BiPredicate<Path, BasicFileAttributes> private static final Comparator<Path> private final Pathprivate static final BiPredicate<Path, BasicFileAttributes> private static final Comparator<Path> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static intcompareBiomePaths(Path a, Path b) protected static booleanisValidBiomeFile(Path path) load()protected static voidloadPrefabCategories(Path folder, FileLoadingContext context) protected static ZoneFileContextloadZoneContext(String name, Path folder, FileLoadingContext context) private static StringparseName(Path path, BiomeFileContext.Type type) protected static voidvalidateZones(FileLoadingContext context, Set<String> zoneRequirement)
-
Field Details
-
ZONES_ORDER
-
BIOME_ORDER
-
ZONE_FILTER
-
BIOME_FILTER
-
dataFolder
-
zoneRequirement
-
-
Constructor Details
-
FileContextLoader
-
-
Method Details
-
load
-
loadPrefabCategories
protected static void loadPrefabCategories(@Nonnull Path folder, @Nonnull FileLoadingContext context) -
loadZoneContext
@Nonnull protected static ZoneFileContext loadZoneContext(String name, @Nonnull Path folder, @Nonnull FileLoadingContext context) -
compareBiomePaths
-
isValidBiomeFile
-
validateZones
protected static void validateZones(@Nonnull FileLoadingContext context, @Nonnull Set<String> zoneRequirement) throws Error - Throws:
Error
-
parseName
-