Search in sources :

Example 1 with MultiblockServerTickHandler

use of reborncore.common.multiblock.MultiblockServerTickHandler in project TechReborn by TechReborn.

the class Core method init.

@Mod.EventHandler
public void init(FMLInitializationEvent event) throws IllegalAccessException, InstantiationException {
    // World gen
    VeinWorldGenerator.registerTRVeins();
    if (ConfigTechReborn.veinOres) {
        GameRegistry.registerWorldGenerator(VeinWorldGenerator.INSTANCE, 0);
    }
    // Registers Chest Loot
    ModLoot.init();
    // Multiparts
    ModParts.init();
    // Sounds
    ModSounds.init();
    // Compat
    for (ICompatModule compatModule : CompatManager.INSTANCE.compatModules) {
        compatModule.init(event);
    }
    MinecraftForge.EVENT_BUS.register(new StackWIPHandler());
    // Ore Dictionary
    OreDict.init();
    // Recipes
    StopWatch watch = new StopWatch();
    watch.start();
    ModRecipes.init();
    logHelper.all(watch + " : main recipes");
    watch.stop();
    // Client only init, needs to be done before parts system
    proxy.init(event);
    // WorldGen
    worldGen.load();
    if (!ConfigTechReborn.veinOres) {
        GameRegistry.registerWorldGenerator(worldGen, 0);
    }
    // DungeonLoot.init();
    // Register Gui Handler
    NetworkRegistry.INSTANCE.registerGuiHandler(INSTANCE, new GuiHandler());
    // Achievements
    TRAchievements.init();
    // Multiblock events
    MinecraftForge.EVENT_BUS.register(new MultiblockEventHandler());
    // IDSU manager
    IDSUManager.INSTANCE = new IDSUManager();
    // Event busses
    MinecraftForge.EVENT_BUS.register(IDSUManager.INSTANCE);
    MinecraftForge.EVENT_BUS.register(new MultiblockServerTickHandler());
    MinecraftForge.EVENT_BUS.register(new TRTickHandler());
    MinecraftForge.EVENT_BUS.register(new OreUnifier());
    // Scrapbox
    if (config.ScrapboxDispenser) {
        BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(ModItems.scrapBox, new BehaviorDispenseScrapbox());
    }
    logHelper.info("Initialization Complete");
}
Also used : MultiblockServerTickHandler(reborncore.common.multiblock.MultiblockServerTickHandler) MultiblockEventHandler(reborncore.common.multiblock.MultiblockEventHandler) BehaviorDispenseScrapbox(techreborn.dispenser.BehaviorDispenseScrapbox) OreUnifier(techreborn.events.OreUnifier) ICompatModule(techreborn.compat.ICompatModule) StackWIPHandler(techreborn.utils.StackWIPHandler) TRTickHandler(techreborn.events.TRTickHandler) GuiHandler(techreborn.client.GuiHandler) IDSUManager(techreborn.tiles.idsu.IDSUManager) StopWatch(org.apache.commons.lang3.time.StopWatch)

Example 2 with MultiblockServerTickHandler

use of reborncore.common.multiblock.MultiblockServerTickHandler in project RebornCore by TechReborn.

the class RebornCore method init.

@Mod.EventHandler
public void init(FMLInitializationEvent event) {
    RebornCoreConfig.isIC2Loaded = Loader.isModLoaded("ic2");
    TeslaManager.load();
    // packets
    OreUtil.scanForOres();
    NetworkManager.load();
    RebornCoreShields.init();
    RebornPermissions.init();
    MinecraftForge.EVENT_BUS.register(LootManager.INSTANCE);
    // MinecraftForge.EVENT_BUS.register(InventoryCapabilityAttacher.instace);
    // Multiblock events
    MinecraftForge.EVENT_BUS.register(new MultiblockEventHandler());
    MinecraftForge.EVENT_BUS.register(new MultiblockServerTickHandler());
    MinecraftForge.EVENT_BUS.register(BlockWrenchEventHandler.class);
    if (ItemTeamRebornManual.isManualEnabled) {
        RebornRegistry.registerItem(new ItemTeamRebornManual());
        NetworkRegistry.INSTANCE.registerGuiHandler(INSTANCE, new ManualGuiHandler());
    }
    proxy.init(event);
    RegistrationManager.load(event);
}
Also used : MultiblockServerTickHandler(reborncore.common.multiblock.MultiblockServerTickHandler) MultiblockEventHandler(reborncore.common.multiblock.MultiblockEventHandler) ManualGuiHandler(reborncore.client.gui.ManualGuiHandler) ItemTeamRebornManual(reborncore.modcl.manual.ItemTeamRebornManual)

Aggregations

MultiblockEventHandler (reborncore.common.multiblock.MultiblockEventHandler)2 MultiblockServerTickHandler (reborncore.common.multiblock.MultiblockServerTickHandler)2 StopWatch (org.apache.commons.lang3.time.StopWatch)1 ManualGuiHandler (reborncore.client.gui.ManualGuiHandler)1 ItemTeamRebornManual (reborncore.modcl.manual.ItemTeamRebornManual)1 GuiHandler (techreborn.client.GuiHandler)1 ICompatModule (techreborn.compat.ICompatModule)1 BehaviorDispenseScrapbox (techreborn.dispenser.BehaviorDispenseScrapbox)1 OreUnifier (techreborn.events.OreUnifier)1 TRTickHandler (techreborn.events.TRTickHandler)1 IDSUManager (techreborn.tiles.idsu.IDSUManager)1 StackWIPHandler (techreborn.utils.StackWIPHandler)1