Search in sources :

Example 1 with ModuleEffectLeap

use of com.teamwizardry.wizardry.common.module.effects.ModuleEffectLeap in project Wizardry by TeamWizardry.

the class CommonProxy method preInit.

public void preInit(FMLPreInitializationEvent event) {
    directory = new File(event.getModConfigurationDirectory(), Wizardry.MODID);
    if (!directory.exists())
        if (!directory.mkdirs())
            Wizardry.logger.fatal("    > SOMETHING WENT WRONG! Could not create config folder!!");
    MinecraftForge.EVENT_BUS.register(BaublesSupport.class);
    NemezEventHandler.register();
    new ModTab();
    ModBlocks.init();
    ModItems.init();
    ModSounds.init();
    ModPotions.init();
    ModEntities.init();
    ModCapabilities.preInit();
    NetworkRegistry.INSTANCE.registerGuiHandler(Wizardry.instance, new GuiHandler());
    Wizardry.underWorld = DimensionType.register("underworld", "_dim", ConfigValues.underworldID, WorldProviderUnderWorld.class, false);
    DimensionManager.registerDimension(ConfigValues.underworldID, Wizardry.underWorld);
    MinecraftForge.EVENT_BUS.register(ArenaManager.INSTANCE);
    MinecraftForge.EVENT_BUS.register(new WorldProviderUnderWorld());
    MinecraftForge.EVENT_BUS.register(new EventHandler());
    MinecraftForge.EVENT_BUS.register(new AchievementEvents());
    MinecraftForge.EVENT_BUS.register(new ModCapabilities());
    MinecraftForge.EVENT_BUS.register(new ModuleEffectTimeSlow());
    MinecraftForge.EVENT_BUS.register(new ModuleEffectLeap());
    MinecraftForge.EVENT_BUS.register(ModBiomes.BIOME_UNDERWORLD);
    MinecraftForge.EVENT_BUS.register(this);
    MinecraftForge.EVENT_BUS.register(SpellTicker.class);
    PacketHandler.register(PacketSendSpellToBook.class, Side.SERVER);
    PacketHandler.register(PacketSyncCape.class, Side.SERVER);
    PacketHandler.register(PacketRenderSpell.class, Side.CLIENT);
    PacketHandler.register(PacketExplode.class, Side.CLIENT);
    PacketHandler.register(PacketSyncModules.class, Side.CLIENT);
    PacketHandler.register(PacketFreezePlayer.class, Side.CLIENT);
    PacketHandler.register(PacketRenderLightningBolt.class, Side.CLIENT);
    PacketHandler.register(PacketSyncCooldown.class, Side.CLIENT);
    PacketHandler.register(PacketVanishPotion.class, Side.CLIENT);
    PacketHandler.register(PacketDevilDustFizzle.class, Side.CLIENT);
}
Also used : AchievementEvents(com.teamwizardry.wizardry.common.advancement.AchievementEvents) ModuleEffectLeap(com.teamwizardry.wizardry.common.module.effects.ModuleEffectLeap) NemezEventHandler(com.teamwizardry.wizardry.common.entity.angel.zachriel.nemez.NemezEventHandler) EventHandler(com.teamwizardry.wizardry.common.core.EventHandler) GuiHandler(com.teamwizardry.wizardry.client.gui.GuiHandler) WorldProviderUnderWorld(com.teamwizardry.wizardry.common.world.underworld.WorldProviderUnderWorld) File(java.io.File) ModuleEffectTimeSlow(com.teamwizardry.wizardry.common.module.effects.ModuleEffectTimeSlow)

Aggregations

GuiHandler (com.teamwizardry.wizardry.client.gui.GuiHandler)1 AchievementEvents (com.teamwizardry.wizardry.common.advancement.AchievementEvents)1 EventHandler (com.teamwizardry.wizardry.common.core.EventHandler)1 NemezEventHandler (com.teamwizardry.wizardry.common.entity.angel.zachriel.nemez.NemezEventHandler)1 ModuleEffectLeap (com.teamwizardry.wizardry.common.module.effects.ModuleEffectLeap)1 ModuleEffectTimeSlow (com.teamwizardry.wizardry.common.module.effects.ModuleEffectTimeSlow)1 WorldProviderUnderWorld (com.teamwizardry.wizardry.common.world.underworld.WorldProviderUnderWorld)1 File (java.io.File)1