Advertisement
Guest User

Untitled

a guest
Jan 28th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.61 KB | None | 0 0
  1. package de.promolitor.copymultiplayerworld;
  2.  
  3. import net.minecraft.init.Blocks;
  4. import net.minecraftforge.client.ClientCommandHandler;
  5. import cpw.mods.fml.common.Mod;
  6. import cpw.mods.fml.common.Mod.EventHandler;
  7. import cpw.mods.fml.common.Mod.Instance;
  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. import de.promolitor.copymultiplayerworld.proxies.CommonProxy;
  13.  
  14. @Mod(modid = CopyMultiplayerWorld.MODID, version = CopyMultiplayerWorld.VERSION, name = CopyMultiplayerWorld.MODNAME)
  15. public class CopyMultiplayerWorld {
  16.     public static final String MODID = "cmw";
  17.     public static final String MODNAME = "Copy Multiplayer World";
  18.     public static final String VERSION = "1.0";
  19.  
  20.     @Instance(MODID)
  21.     public static CopyMultiplayerWorld instance;
  22.  
  23.     protected static final String CLIENT_PROXY = "de.promolitor.copymultiplayerworld.proxies.ClientProxy";
  24.     protected static final String SERVER_PROXY = "de.promolitor.copymultiplayerworld.proxies.CommonProxy";
  25.     @SidedProxy(modId = MODID, clientSide = CLIENT_PROXY, serverSide = SERVER_PROXY)
  26.     protected static CommonProxy proxy;
  27.  
  28.     @EventHandler
  29.     public void preInit(FMLPreInitializationEvent event) {
  30.  
  31.         if (proxy.isServer()) {
  32.            
  33.         }
  34.  
  35.         if (proxy.isClient()) {
  36.             ClientCommandHandler.instance.registerCommand(new CommandHandler());
  37.         }
  38.  
  39.     }
  40.  
  41.     @EventHandler
  42.     public void init(FMLInitializationEvent event) {
  43.  
  44.     }
  45.  
  46.     @EventHandler
  47.     public void postInit(FMLPostInitializationEvent event) {
  48.  
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement