Class EmbeddedDatapacks
java.lang.Object
com.ultikits.ultitools.bootstrap.EmbeddedDatapacks
Materializes framework-owned derived ZIPs from the declaring module JARs on each start. The
bootstrap/datapacks cache is not operator-editable and never targets the world's data
pack directory or any file supplied by the operator.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void(package private) static voidprepare(Path dataFolder, ContributionRegistry registry, Logger logger) private static List<EmbeddedDatapacks.PreparedPack> prepareModule(Path dataFolder, Path directory, ContributionRegistry registry, ModuleContributions module) private static voidprivate static byte[]private static voidvalidatePath(String path) private static void
-
Field Details
-
ZIP_NAME
-
-
Constructor Details
-
EmbeddedDatapacks
private EmbeddedDatapacks()
-
-
Method Details
-
prepare
-
prepareModule
private static List<EmbeddedDatapacks.PreparedPack> prepareModule(Path dataFolder, Path directory, ContributionRegistry registry, ModuleContributions module) -
extract
- Throws:
IOException
-
writeZip
- Throws:
IOException
-
validatePath
- Throws:
IOException
-
sha256
- Throws:
IOException
-
prune
-