Guest User

Untitled

a guest
Aug 7th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. package com.jack.jackmod;
  2.  
  3. import com.jack.jackmod.handler.ConfigurationHandler;
  4. import com.jack.jackmod.proxy.IProxy;
  5. import com.jack.jackmod.reference.Reference;
  6. import cpw.mods.fml.common.FMLCommonHandler;
  7. import cpw.mods.fml.common.Mod;
  8. import cpw.mods.fml.common.SidedProxy;
  9. import cpw.mods.fml.common.event.FMLInitializationEvent;
  10. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  11. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  12.  
  13. @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.MOD_VERSION, guiFactory = Reference.GUI_FACTORY_CLASS)
  14.  
  15. public class JackMod {
  16.  
  17. @Mod.Instance(Reference.MOD_ID)
  18. public static JackMod instance;
  19.  
  20. @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
  21. public static IProxy proxy;
  22.  
  23. @Mod.EventHandler
  24. public void preInit(FMLPreInitializationEvent event) {
  25. ConfigurationHandler.init(event.getSuggestedConfigurationFile());
  26. }
  27.  
  28. @Mod.EventHandler
  29. public void init(FMLInitializationEvent event) {
  30. FMLCommonHandler.instance().bus().register(instance);
  31. }
  32.  
  33. @Mod.EventHandler
  34. public void postInit(FMLPostInitializationEvent event) {
  35. // Run after other mods have done their bit.
  36. }
  37.  
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment