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 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:
      true if a module with the given ID is loaded, or false if the module does not exist or is missing module dependencies.
    • getModulesForMod

      List<IForestryModule> getModulesForMod(String modId)