2014-10-02 23:04:17 -07:00
|
|
|
package tombenpotter.emt.common.modules;
|
|
|
|
|
|
2014-10-24 02:22:54 -07:00
|
|
|
import tombenpotter.emt.ElectroMagicTools;
|
|
|
|
|
import tombenpotter.emt.common.modules.base.BaseRecipeRegistry;
|
|
|
|
|
import tombenpotter.emt.common.modules.base.blocks.BaseBlockRegistry;
|
|
|
|
|
import tombenpotter.emt.common.modules.base.items.BaseItemRegistry;
|
|
|
|
|
import tombenpotter.emt.common.modules.ic2.IC2RecipeRegistry;
|
|
|
|
|
import tombenpotter.emt.common.modules.ic2.blocks.IC2BlockRegistry;
|
|
|
|
|
import tombenpotter.emt.common.modules.ic2.items.IC2ItemRegistry;
|
|
|
|
|
import tombenpotter.emt.common.modules.te.TERecipeRegistry;
|
|
|
|
|
import tombenpotter.emt.common.modules.te.blocks.TEBlockRegistry;
|
|
|
|
|
import tombenpotter.emt.common.modules.te.items.TEItemRegistry;
|
|
|
|
|
import tombenpotter.emt.common.util.ConfigHandler;
|
|
|
|
|
|
|
|
|
|
import static tombenpotter.emt.common.util.TextHelper.localize;
|
|
|
|
|
|
2014-10-02 23:04:17 -07:00
|
|
|
public class ModuleRegistry {
|
|
|
|
|
|
2014-10-17 22:45:57 +02:00
|
|
|
public static void registerModules() {
|
2014-10-24 02:22:54 -07:00
|
|
|
|
2014-10-17 22:45:57 +02:00
|
|
|
BaseBlockRegistry.registerBaseBlocks();
|
2014-10-24 02:22:54 -07:00
|
|
|
BaseItemRegistry.registerItems();
|
|
|
|
|
BaseRecipeRegistry.registerRecipes();
|
2014-10-02 23:04:17 -07:00
|
|
|
|
|
|
|
|
if (ConfigHandler.enableIC2Module) {
|
2014-10-24 02:22:54 -07:00
|
|
|
IC2BlockRegistry.registerBlocks();
|
|
|
|
|
IC2ItemRegistry.registerItems();
|
2014-10-24 02:27:56 -07:00
|
|
|
ElectroMagicTools.logger.info(localize("console.EMT.init.recipes"));
|
2014-10-24 02:22:54 -07:00
|
|
|
IC2RecipeRegistry.registerEarlyRecipes();
|
2014-10-02 23:04:17 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (ConfigHandler.enableTEModule) {
|
|
|
|
|
TEBlockRegistry.registerTEBlocks();
|
|
|
|
|
TEItemRegistry.registerTEItems();
|
|
|
|
|
TERecipeRegistry.registerTERecipes();
|
|
|
|
|
}
|
2014-10-17 22:45:57 +02:00
|
|
|
}
|
2014-10-24 02:27:56 -07:00
|
|
|
|
|
|
|
|
public static void registerLateModules() {
|
|
|
|
|
|
|
|
|
|
if (ConfigHandler.enableIC2Module) {
|
|
|
|
|
ElectroMagicTools.logger.info(localize("console.EMT.postInit.recipes"));
|
|
|
|
|
IC2RecipeRegistry.registerLateRecipes();
|
|
|
|
|
ElectroMagicTools.logger.info(localize("console.EMT.postInit.recipes.uumatter"));
|
|
|
|
|
IC2RecipeRegistry.registerUUMInfusionRecipes();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (ConfigHandler.enableTEModule) {
|
|
|
|
|
// do stuff
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-02 23:04:17 -07:00
|
|
|
}
|