Package forestry.api.modules
Interface IModuleManager
public interface IModuleManager
The module manager of Forestry.
Modules are a way to organize related features and compatibility into separate parts of the mod.
Register your
IForestryModule classes with the ForestryModule annotation.-
Method Summary
Modifier and TypeMethodDescriptiongetModulesForMod(String modId) booleanisModuleLoaded(net.minecraft.resources.ResourceLocation id)
-
Method Details
-
getLoadedModules
Collection<IForestryModule> getLoadedModules()- Returns:
- List of loaded modules in LOAD order, where dependency modules come before dependent modules. Modules with the same dependencies are not guaranteed to be in the same order between runs.
-
isModuleLoaded
boolean isModuleLoaded(net.minecraft.resources.ResourceLocation id) - Returns:
trueif a module with the given ID is loaded, orfalseif the module does not exist or is missing module dependencies.
-
getModulesForMod
-