use of forestry.api.modules.IForestryModule in project ForestryMC by ForestryMC.
the class InternalModuleHandler method runInit.
public void runInit() {
stage = Stage.INIT;
for (IForestryModule module : modules) {
Log.debug("Init Start: {}", module);
module.doInit();
module.registerRecipes();
Log.debug("Init Complete: {}", module);
}
}
use of forestry.api.modules.IForestryModule in project ForestryMC by ForestryMC.
the class InternalModuleHandler method runPostInit.
public void runPostInit() {
stage = Stage.POST_INIT;
for (IForestryModule module : modules) {
Log.debug("Post-Init Start: {}", module);
module.postInit();
Log.debug("Post-Init Complete: {}", module);
}
stage = Stage.FINISHED;
}
use of forestry.api.modules.IForestryModule in project ForestryMC by ForestryMC.
the class ModuleManager method getLootTableFiles.
public static Set<String> getLootTableFiles() {
Set<String> lootTableNames = new HashSet<>();
for (IForestryModule module : loadedModules) {
ForestryModule info = module.getClass().getAnnotation(ForestryModule.class);
String lootTableFolder = info.lootTable();
if (!lootTableFolder.isEmpty()) {
lootTableNames.add(lootTableFolder);
}
}
return lootTableNames;
}
use of forestry.api.modules.IForestryModule in project Binnie by ForestryMC.
the class ModuleContainer method runInit.
public void runInit(FMLInitializationEvent event) {
for (IForestryModule module : loadedModules) {
module.doInit();
module.registerRecipes();
}
for (IConfigHandler handler : configHandlers) {
handler.loadConfig();
}
}
Aggregations