Class BundleDiscovery
java.lang.Object
de.luckymcdev.foundryengine.common.bundle.BundleDiscovery
Handles discovery, dependency sorting, and loading of bundles from the file system.
-
Constructor Summary
ConstructorsConstructorDescriptionBundleDiscovery(BundleFactory bundleFactory, Consumer<Bundle> bundleConsumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidDiscovers and loads all bundles in the given directory.
-
Constructor Details
-
BundleDiscovery
-
-
Method Details
-
discover
Discovers and loads all bundles in the given directory.- Parameters:
directory- The directory to search- Throws:
IOException- if discovery fails
-
getBundleFactory
-