// Path: src/main/java/modpacktweaks/ModpackTweaks.java
// @Mod(modid = ModpackTweaks.MODID, name = ModpackTweaks.NAME, version = ModpackTweaks.VERSION, dependencies = ModpackTweaks.DEPEND)
// public class ModpackTweaks
// {
//     public static final String MODID = "modpackTweaks";
//     public static final String NAME = "ModpackTweaks";
//     public static final String DEPEND = "required-after:endercore;after:ThermalExpansion";
// 	public static final String VERSION = "@VERSION@";
//     public static final String CHANNEL = "modpacktweaks";
// 
// 	@Instance
// 	public static ModpackTweaks instance;
// 
// 	@SidedProxy(clientSide = "modpacktweaks.proxy.ClientProxy", serverSide = "modpacktweaks.proxy.CommonProxy")
// 	public static CommonProxy proxy;
// 
// 	public static BookHandler bookHandler;
// 
// 	public static final Logger logger = LogManager.getLogger("ModpackTweaks");
// 
// 	public static CreativeTabs creativeTab = new CreativeTabs("tabMT")
// 	{
// 		@Override
// 		public Item getTabIconItem()
// 		{
// 		    return ModItems.book;
// 		}
// 	};
// 
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent event)
// 	{		
// 		ConfigurationHandler.init(new File(event.getModConfigurationDirectory().getAbsolutePath() + "/modpackTweaks/modpackTweaks.cfg"));
// 		ConfigurationHandler.loadClientsideJson();
// 		
// 		try
// 		{
// 			FileLoader.init(ConfigurationHandler.cfg, 0);
// 		}
// 		catch (IOException e)
// 		{
// 			e.printStackTrace();
// 		}
// 
// 		ConfigurationHandler.loadGuideText(FileLoader.getGuideText());
// 		ConfigurationHandler.loadChangelogText(FileLoader.getChangelogText());
// 
// 		CommandMT.initValidCommandArguments(FileLoader.getSupportedModsFile());
// 
// 		ModItems.initItems();
// 
// 		bookHandler = new BookHandler();
// 		FMLCommonHandler.instance().bus().register(bookHandler);
// 		
// 		MinecraftForge.EVENT_BUS.register(new ModEventHandler());
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent event)
// 	{
// 		ModItems.registerRecipes();
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent event)
// 	{
// 		if (FMLCommonHandler.instance().getSide().isClient())
// 		{
// 			try
// 			{
// 				GuiHelper.initMap();
// 			}
// 			catch (FileNotFoundException e)
// 			{
// 				e.printStackTrace();
// 			}
// 		}
// 	}
// 
// 	@EventHandler
// 	public void onFMLServerStart(FMLServerStartingEvent event)
// 	{
// 		event.registerServerCommand(new CommandMT());
// 	}
// }
// 
// Path: src/main/java/modpacktweaks/network/message/MessageShowDownloadGUI.java
// public class MessageShowDownloadGUI implements IMessage, IMessageHandler<MessageShowDownloadGUI, IMessage>
// {
//     public MessageShowDownloadGUI() {}
//     
//     @Override
//     public void fromBytes(ByteBuf buf)
//     {}
// 
//     @Override
//     public void toBytes(ByteBuf buf)
//     {}
//     
//     @Override
//     public IMessage onMessage(MessageShowDownloadGUI message, MessageContext ctx)
//     {
//         GuiHelper.doDownloaderGUI();
//         return null;
//     }
// }


import modpacktweaks.ModpackTweaks;
import modpacktweaks.network.message.MessageShowDownloadGUI;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import cpw.mods.fml.relauncher.Side;
package modpacktweaks.network;


public class PacketHandler
{
// Path: src/main/java/modpacktweaks/ModpackTweaks.java
// @Mod(modid = ModpackTweaks.MODID, name = ModpackTweaks.NAME, version = ModpackTweaks.VERSION, dependencies = ModpackTweaks.DEPEND)
// public class ModpackTweaks
// {
//     public static final String MODID = "modpackTweaks";
//     public static final String NAME = "ModpackTweaks";
//     public static final String DEPEND = "required-after:endercore;after:ThermalExpansion";
// 	public static final String VERSION = "@VERSION@";
//     public static final String CHANNEL = "modpacktweaks";
// 
// 	@Instance
// 	public static ModpackTweaks instance;
// 
// 	@SidedProxy(clientSide = "modpacktweaks.proxy.ClientProxy", serverSide = "modpacktweaks.proxy.CommonProxy")
// 	public static CommonProxy proxy;
// 
// 	public static BookHandler bookHandler;
// 
// 	public static final Logger logger = LogManager.getLogger("ModpackTweaks");
// 
// 	public static CreativeTabs creativeTab = new CreativeTabs("tabMT")
// 	{
// 		@Override
// 		public Item getTabIconItem()
// 		{
// 		    return ModItems.book;
// 		}
// 	};
// 
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent event)
// 	{		
// 		ConfigurationHandler.init(new File(event.getModConfigurationDirectory().getAbsolutePath() + "/modpackTweaks/modpackTweaks.cfg"));
// 		ConfigurationHandler.loadClientsideJson();
// 		
// 		try
// 		{
// 			FileLoader.init(ConfigurationHandler.cfg, 0);
// 		}
// 		catch (IOException e)
// 		{
// 			e.printStackTrace();
// 		}
// 
// 		ConfigurationHandler.loadGuideText(FileLoader.getGuideText());
// 		ConfigurationHandler.loadChangelogText(FileLoader.getChangelogText());
// 
// 		CommandMT.initValidCommandArguments(FileLoader.getSupportedModsFile());
// 
// 		ModItems.initItems();
// 
// 		bookHandler = new BookHandler();
// 		FMLCommonHandler.instance().bus().register(bookHandler);
// 		
// 		MinecraftForge.EVENT_BUS.register(new ModEventHandler());
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent event)
// 	{
// 		ModItems.registerRecipes();
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent event)
// 	{
// 		if (FMLCommonHandler.instance().getSide().isClient())
// 		{
// 			try
// 			{
// 				GuiHelper.initMap();
// 			}
// 			catch (FileNotFoundException e)
// 			{
// 				e.printStackTrace();
// 			}
// 		}
// 	}
// 
// 	@EventHandler
// 	public void onFMLServerStart(FMLServerStartingEvent event)
// 	{
// 		event.registerServerCommand(new CommandMT());
// 	}
// }
// 
// Path: src/main/java/modpacktweaks/network/message/MessageShowDownloadGUI.java
// public class MessageShowDownloadGUI implements IMessage, IMessageHandler<MessageShowDownloadGUI, IMessage>
// {
//     public MessageShowDownloadGUI() {}
//     
//     @Override
//     public void fromBytes(ByteBuf buf)
//     {}
// 
//     @Override
//     public void toBytes(ByteBuf buf)
//     {}
//     
//     @Override
//     public IMessage onMessage(MessageShowDownloadGUI message, MessageContext ctx)
//     {
//         GuiHelper.doDownloaderGUI();
//         return null;
//     }
// }


// Path: src/main/java/modpacktweaks/network/PacketHandler.java
import modpacktweaks.ModpackTweaks;
import modpacktweaks.network.message.MessageShowDownloadGUI;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import cpw.mods.fml.relauncher.Side;

package modpacktweaks.network;


public class PacketHandler
{
    public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel(ModpackTweaks.CHANNEL);