// 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());
// 	}
// }


import cpw.mods.fml.common.FMLCommonHandler;
import modpacktweaks.ModpackTweaks;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
package modpacktweaks.client.gui;


public class RestartGui extends GuiScreen
{
	@SuppressWarnings("unchecked")
	@Override
	public void initGui()
	{
		this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 2, 200, 20, "Exit the game"));
		this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 2 + 30, 200, 20, "Don't exit (mods will not be loaded)"));
	}
	
	@Override
	public void drawScreen(int par1, int par2, float par3)
	{
		this.drawDefaultBackground();
		
		this.drawCenteredString(this.fontRendererObj, "You have installed all desired mods!", this.width / 2, this.height / 2 - 40, 0xFFFFFF);
		this.drawCenteredString(this.fontRendererObj, "However, you must restart Minecraft for your changes to take effect.", this.width / 2, this.height / 2 - 20, 0xFFFFFF);
		
		super.drawScreen(par1, par2, par3);
	}
	
	@Override
	protected void actionPerformed(GuiButton button)
	{
		if (button.id == 0)
		{
			Minecraft.getMinecraft().shutdown();
		}
		else
		{
// 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/client/gui/RestartGui.java
import cpw.mods.fml.common.FMLCommonHandler;
import modpacktweaks.ModpackTweaks;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;

package modpacktweaks.client.gui;


public class RestartGui extends GuiScreen
{
	@SuppressWarnings("unchecked")
	@Override
	public void initGui()
	{
		this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 2, 200, 20, "Exit the game"));
		this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 2 + 30, 200, 20, "Don't exit (mods will not be loaded)"));
	}
	
	@Override
	public void drawScreen(int par1, int par2, float par3)
	{
		this.drawDefaultBackground();
		
		this.drawCenteredString(this.fontRendererObj, "You have installed all desired mods!", this.width / 2, this.height / 2 - 40, 0xFFFFFF);
		this.drawCenteredString(this.fontRendererObj, "However, you must restart Minecraft for your changes to take effect.", this.width / 2, this.height / 2 - 20, 0xFFFFFF);
		
		super.drawScreen(par1, par2, par3);
	}
	
	@Override
	protected void actionPerformed(GuiButton button)
	{
		if (button.id == 0)
		{
			Minecraft.getMinecraft().shutdown();
		}
		else
		{
			ModpackTweaks.logger.info("Mod installations finished! Restart minecraft for your changes to take effect.");