// Path: src/main/java/tppitweaks/TPPITweaks.java
// @Mod(modid = "TPPITweaks", name = "TPPI Tweaks", version = TPPITweaks.VERSION, dependencies = Reference.DEPENDENCIES)
// public class TPPITweaks
// {
// 	public static final String VERSION = "@VERSION@";
// 
// 	@Instance("TPPITweaks")
// 	public static TPPITweaks instance;
// 
// 	@SidedProxy(clientSide = "tppitweaks.proxy.ClientProxy", serverSide = "tppitweaks.proxy.CommonProxy")
// 	public static CommonProxy proxy;
// 
// 	public static TPPIEventHandler eventHandler;
// 
// 	public static final Logger logger = LogManager.getLogger("TPPITweaks");
// 
// 	public static CreativeTabTPPI creativeTab = new CreativeTabTPPI(CreativeTabs.getNextID());
// 
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent event)
// 	{		
// 		RecipeTweakingCore.registerPackageName("tppitweaks.tweak.recipe");
// 
// 		ConfigurationHandler.init(new File(event.getModConfigurationDirectory().getAbsolutePath() + "/TPPI/TPPITweaks.cfg"));
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent event)
// 	{
// 		// AM2SpawnControls.doAM2SpawnControls();
// 
// 		ModItems.initItems();
// 		ModBlocks.initBlocks();
// 		
// 		eventHandler = new TPPIEventHandler();
// 		MinecraftForge.EVENT_BUS.register(eventHandler);
// 		ModItems.registerRecipes();
// 		ModBlocks.registerRecipes();
// 
// 		if (event.getSide().isClient())
// 			proxy.initTickHandler();
// 		
// 		if (Loader.isModLoaded("Thaumcraft"))
// 			TweakVanilla.init();
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent event)
// 	{
// 		AdditionalTweaks.doOreDictTweaks();
// 		AdditionalTweaks.addMiscRecipes();
// 	}
// 
// 	@EventHandler
// 	public void onFMLServerStart(FMLServerStartingEvent event)
// 	{
// 		event.registerServerCommand(new CommandOres());
// 		event.registerServerCommand(new CommandGetInvolved());
// 	}
// }


import java.io.InputStream;
import java.util.ArrayList;
import java.util.Scanner;
import tppitweaks.TPPITweaks;

        String nextPage = "";

        while (scanner.hasNextLine())
        {
            String temp = scanner.nextLine();

            // If the line is a comment
            if (temp.length() == 0 || temp.startsWith("**"))
            {
                // If the line is possibly a line-skip comment
                if (temp.startsWith("***"))
                {
                    boolean validSkip = true;
                    for (int i = 3; i < temp.length(); i++)
                        if (!isANumber(temp.charAt(i)))
                        {
                            validSkip = false;
                            break;
                        }
                    // Skip the requested amount of lines by parsing the number
                    // after the asterisks
                    if (validSkip)
                    {
                        for (int i = 0; i <= Integer.parseInt(temp.substring(3, temp.length())); i++)
                        {
                            scanner.nextLine();
                        }
                    }
                    else
// Path: src/main/java/tppitweaks/TPPITweaks.java
// @Mod(modid = "TPPITweaks", name = "TPPI Tweaks", version = TPPITweaks.VERSION, dependencies = Reference.DEPENDENCIES)
// public class TPPITweaks
// {
// 	public static final String VERSION = "@VERSION@";
// 
// 	@Instance("TPPITweaks")
// 	public static TPPITweaks instance;
// 
// 	@SidedProxy(clientSide = "tppitweaks.proxy.ClientProxy", serverSide = "tppitweaks.proxy.CommonProxy")
// 	public static CommonProxy proxy;
// 
// 	public static TPPIEventHandler eventHandler;
// 
// 	public static final Logger logger = LogManager.getLogger("TPPITweaks");
// 
// 	public static CreativeTabTPPI creativeTab = new CreativeTabTPPI(CreativeTabs.getNextID());
// 
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent event)
// 	{		
// 		RecipeTweakingCore.registerPackageName("tppitweaks.tweak.recipe");
// 
// 		ConfigurationHandler.init(new File(event.getModConfigurationDirectory().getAbsolutePath() + "/TPPI/TPPITweaks.cfg"));
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent event)
// 	{
// 		// AM2SpawnControls.doAM2SpawnControls();
// 
// 		ModItems.initItems();
// 		ModBlocks.initBlocks();
// 		
// 		eventHandler = new TPPIEventHandler();
// 		MinecraftForge.EVENT_BUS.register(eventHandler);
// 		ModItems.registerRecipes();
// 		ModBlocks.registerRecipes();
// 
// 		if (event.getSide().isClient())
// 			proxy.initTickHandler();
// 		
// 		if (Loader.isModLoaded("Thaumcraft"))
// 			TweakVanilla.init();
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent event)
// 	{
// 		AdditionalTweaks.doOreDictTweaks();
// 		AdditionalTweaks.addMiscRecipes();
// 	}
// 
// 	@EventHandler
// 	public void onFMLServerStart(FMLServerStartingEvent event)
// 	{
// 		event.registerServerCommand(new CommandOres());
// 		event.registerServerCommand(new CommandGetInvolved());
// 	}
// }


// Path: src/main/java/tppitweaks/util/TxtParser.java
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Scanner;
import tppitweaks.TPPITweaks;


        String nextPage = "";

        while (scanner.hasNextLine())
        {
            String temp = scanner.nextLine();

            // If the line is a comment
            if (temp.length() == 0 || temp.startsWith("**"))
            {
                // If the line is possibly a line-skip comment
                if (temp.startsWith("***"))
                {
                    boolean validSkip = true;
                    for (int i = 3; i < temp.length(); i++)
                        if (!isANumber(temp.charAt(i)))
                        {
                            validSkip = false;
                            break;
                        }
                    // Skip the requested amount of lines by parsing the number
                    // after the asterisks
                    if (validSkip)
                    {
                        for (int i = 0; i <= Integer.parseInt(temp.substring(3, temp.length())); i++)
                        {
                            scanner.nextLine();
                        }
                    }
                    else
                        TPPITweaks.logger.warn("Invalid line-skip in changelog. This may not work as intended");