Advertisement
Guest User

Untitled

a guest
Dec 31st, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. package net.madcrazydrumma;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. import net.madcrazydrumma.gui.InGameOverlay;
  6. import net.madcrazydrumma.item.ItemHandler;
  7. import net.madcrazydrumma.keys.KeyBindings;
  8. import net.madcrazydrumma.packet.SkillExecutionPacket;
  9. import net.madcrazydrumma.packet.SkillFailedPacket;
  10. import net.madcrazydrumma.packet.SkillSuccessPacket;
  11. import net.madcrazydrumma.skill.BladeOfTheExile;
  12. import net.madcrazydrumma.skill.BrokenWings;
  13. import net.madcrazydrumma.skill.ISkill;
  14. import net.madcrazydrumma.skill.KiBurst;
  15. import net.madcrazydrumma.skill.Valor;
  16. import net.minecraftforge.common.MinecraftForge;
  17. import net.minecraftforge.fml.common.FMLCommonHandler;
  18. import net.minecraftforge.fml.common.Mod;
  19. import net.minecraftforge.fml.common.Mod.EventHandler;
  20. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  21. import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
  22. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  23. import net.minecraftforge.fml.common.network.NetworkRegistry;
  24. import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
  25. import net.minecraftforge.fml.relauncher.Side;
  26.  
  27. @Mod(modid = RivenMod.MODID, version = RivenMod.VERSION)
  28. public class RivenMod
  29. {
  30. public static final String MODID = "rivenmod";
  31. public static final String VERSION = "1.0";
  32.  
  33. public static ArrayList<ISkill> skillList;
  34.  
  35. public static final SimpleNetworkWrapper SNW_INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel(MODID);
  36.  
  37. @EventHandler
  38. public void preInit(FMLPreInitializationEvent event) {
  39. KeyBindings.init();
  40. FMLCommonHandler.instance().bus().register(new InGameOverlay());
  41.  
  42. SNW_INSTANCE.registerMessage(SkillExecutionPacket.SkillExecutionPacketHandler.class, SkillExecutionPacket.class, 0, Side.SERVER);
  43. SNW_INSTANCE.registerMessage(SkillFailedPacket.SkillFailedPacketHandler.class, SkillFailedPacket.class, 1, Side.CLIENT);
  44. SNW_INSTANCE.registerMessage(SkillSuccessPacket.SkillSuccessPacketHandler.class, SkillSuccessPacket.class, 2, Side.CLIENT);
  45. }
  46.  
  47. @EventHandler
  48. public void postInit(FMLPostInitializationEvent event) {
  49. MinecraftForge.EVENT_BUS.register(new InGameOverlay());
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement