SHARE
TWEET

Main

a guest Jul 11th, 2016 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.matthew.swarmcraft;
  2.  
  3. import net.minecraftforge.fml.common.Mod;
  4. import net.minecraftforge.fml.common.Mod.EventHandler;
  5. import net.minecraftforge.fml.common.Mod.Instance;
  6. import net.minecraftforge.fml.common.SidedProxy;
  7. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  8. import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
  9. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  10.  
  11. @Mod(modid = Main.MODID, name = Main.MODNAME, version = Main.VERSION)
  12. public class Main {
  13.    
  14.     @SidedProxy(clientSide="com.matthew.swarmcraft.ClientProxy", serverSide="com.matthew.swarmcraft.ServerProxy")
  15.     public static CommonProxy proxy;
  16.  
  17.     public static final String MODID = "swarmcraft";
  18.     public static final String MODNAME = "swarmcraft";
  19.     public static final String VERSION = "1.0.0";
  20.  
  21.     @Instance
  22.     public static Main instance = new Main();
  23.  
  24.     @EventHandler
  25.     public void preInit(FMLPreInitializationEvent e) {
  26.         this.proxy.preInit(e);
  27.        
  28.         System.out.println("Called method: [PreInit]");
  29.     }
  30.  
  31.     @EventHandler
  32.     public void init(FMLInitializationEvent e) {
  33.         this.proxy.init(e);
  34.        
  35.         System.out.println("Called method: [Init]");
  36.     }
  37.  
  38.     @EventHandler
  39.     public void postInit(FMLPostInitializationEvent e) {
  40.         this.proxy.postInit(e);
  41.        
  42.         System.out.println("Called method: [PostInit]");
  43.     }
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top