// Path: cp1.9/src/main/java/ctrlpack/litemod/LiteModControlPack.java
// public class LiteModControlPack implements LiteMod, Tickable, InitCompleteListener {
// 
// 	@Override
// 	public String getName() {
// 		return "ControlPack";
// 	}
// 
// 	@Override
// 	public String getVersion() {
// 		return "5.93-beta2";
// 	}
// 	
// 	public static void regKeys(KeyBinding[] keyArray) {
// 		for (KeyBinding currentKey : keyArray) {
// 			if (currentKey != null) {
// 				LiteLoader.getInput().registerKeyBinding(currentKey);
// 			}
// 		}
// 	}
// 
// 	@Override
// 	public void init(File configPath) {
// 		try {
// 			new ControlPackMain();
// 		} catch (Exception e) {
// 			e.printStackTrace();
// 		}
// 	}
// 	
// 	@Override
// 	public void onTick(Minecraft minecraft, float partialTicks, boolean inGame, boolean clock) {
// 		if (inGame) {
// 			ControlPackMain.instance.tickInGame();
// 		}
// 	}
// 
// 	@Override
// 	public void onInitCompleted(Minecraft minecraft, LiteLoader loader) {
// 		ControlPackMain.instance.postMCInit();
// 	}
// 	
// 	@Override
// 	public void upgradeSettings(String version, File configPath, File oldConfigPath) {}
// 
// }


import ctrlpack.litemod.LiteModControlPack;
import net.minecraft.block.*;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.resources.I18n;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.*;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.RayTraceResult.Type;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.text.TextComponentString;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.opengl.GL11;
import java.util.Properties;
/* Copyright (c) 2011-2017 Julian Uy, Dave Reed
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 */

package ctrlpack;



public class ControlPackMain implements Runnable {
	public static ControlPackMain instance;
	public static Minecraft mc;
	private int toggleCounter = 10;
	
	public ControlPackMain() throws Exception {
		instance = this;
		mc = Minecraft.getMinecraft();
		
		keyBindAlternateLeft = new KeyBinding("key.ctrlpack.altleft", Keyboard.KEY_LCONTROL, "ControlPack");
		keyBindAlternateRight = new KeyBinding("key.ctrlpack.altright", Keyboard.KEY_GRAVE, "ControlPack");
		keyBindToggleSneak = new KeyBinding("key.ctrlpack.toggleSneak", Keyboard.KEY_CAPITAL, "ControlPack");
		keyBindToggleRun = new KeyBinding("key.ctrlpack.autoRun", Keyboard.KEY_R, "ControlPack");
		keyBindToggleJump = new KeyBinding("key.ctrlpack.autoJump", Keyboard.KEY_J, "ControlPack");
		keyBindToggleMine = new KeyBinding("key.ctrlpack.toggleMine", Keyboard.KEY_M, "ControlPack");
		keyBindToggleUse = new KeyBinding("key.ctrlpack.toggleUse", Keyboard.KEY_N, "ControlPack");
		keyBindWalkDistance = new KeyBinding("key.ctrlpack.walkDistance", Keyboard.KEY_EQUALS, "ControlPack");
		keyBindLookBehind = new KeyBinding("key.ctrlpack.lookBehind", 2-100, "ControlPack");
		keyBindToggleGamma = new KeyBinding("key.ctrlpack.toggleGamma", Keyboard.KEY_B, "ControlPack");
		keyBindTorch = new KeyBinding("key.ctrlpack.placeTorch", Keyboard.KEY_V, "ControlPack");
		keyBindEat = new KeyBinding("key.ctrlpack.eatFood", Keyboard.KEY_HOME, "ControlPack");
		keyBindWaypoints = new KeyBinding("key.ctrlpack.waypoints", Keyboard.KEY_PERIOD, "ControlPack");
		keyBindSayLocation = new KeyBinding("key.ctrlpack.saylocation", Keyboard.KEY_INSERT, "ControlPack");
		keyBindings = new KeyBinding[] {
			keyBindTorch,
			keyBindAlternateLeft, keyBindAlternateRight,
			keyBindEat,
			keyBindToggleSneak, keyBindToggleRun, keyBindToggleJump, keyBindToggleMine, keyBindToggleUse,
			keyBindWalkDistance, keyBindLookBehind, keyBindToggleGamma, keyBindSayLocation, keyBindWaypoints
		};		
// Path: cp1.9/src/main/java/ctrlpack/litemod/LiteModControlPack.java
// public class LiteModControlPack implements LiteMod, Tickable, InitCompleteListener {
// 
// 	@Override
// 	public String getName() {
// 		return "ControlPack";
// 	}
// 
// 	@Override
// 	public String getVersion() {
// 		return "5.93-beta2";
// 	}
// 	
// 	public static void regKeys(KeyBinding[] keyArray) {
// 		for (KeyBinding currentKey : keyArray) {
// 			if (currentKey != null) {
// 				LiteLoader.getInput().registerKeyBinding(currentKey);
// 			}
// 		}
// 	}
// 
// 	@Override
// 	public void init(File configPath) {
// 		try {
// 			new ControlPackMain();
// 		} catch (Exception e) {
// 			e.printStackTrace();
// 		}
// 	}
// 	
// 	@Override
// 	public void onTick(Minecraft minecraft, float partialTicks, boolean inGame, boolean clock) {
// 		if (inGame) {
// 			ControlPackMain.instance.tickInGame();
// 		}
// 	}
// 
// 	@Override
// 	public void onInitCompleted(Minecraft minecraft, LiteLoader loader) {
// 		ControlPackMain.instance.postMCInit();
// 	}
// 	
// 	@Override
// 	public void upgradeSettings(String version, File configPath, File oldConfigPath) {}
// 
// }


// Path: cp1.9/src/main/java/ctrlpack/ControlPackMain.java
import ctrlpack.litemod.LiteModControlPack;
import net.minecraft.block.*;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.resources.I18n;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.*;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.RayTraceResult.Type;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.text.TextComponentString;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.opengl.GL11;
import java.util.Properties;

/* Copyright (c) 2011-2017 Julian Uy, Dave Reed
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 */

package ctrlpack;



public class ControlPackMain implements Runnable {
	public static ControlPackMain instance;
	public static Minecraft mc;
	private int toggleCounter = 10;
	
	public ControlPackMain() throws Exception {
		instance = this;
		mc = Minecraft.getMinecraft();
		
		keyBindAlternateLeft = new KeyBinding("key.ctrlpack.altleft", Keyboard.KEY_LCONTROL, "ControlPack");
		keyBindAlternateRight = new KeyBinding("key.ctrlpack.altright", Keyboard.KEY_GRAVE, "ControlPack");
		keyBindToggleSneak = new KeyBinding("key.ctrlpack.toggleSneak", Keyboard.KEY_CAPITAL, "ControlPack");
		keyBindToggleRun = new KeyBinding("key.ctrlpack.autoRun", Keyboard.KEY_R, "ControlPack");
		keyBindToggleJump = new KeyBinding("key.ctrlpack.autoJump", Keyboard.KEY_J, "ControlPack");
		keyBindToggleMine = new KeyBinding("key.ctrlpack.toggleMine", Keyboard.KEY_M, "ControlPack");
		keyBindToggleUse = new KeyBinding("key.ctrlpack.toggleUse", Keyboard.KEY_N, "ControlPack");
		keyBindWalkDistance = new KeyBinding("key.ctrlpack.walkDistance", Keyboard.KEY_EQUALS, "ControlPack");
		keyBindLookBehind = new KeyBinding("key.ctrlpack.lookBehind", 2-100, "ControlPack");
		keyBindToggleGamma = new KeyBinding("key.ctrlpack.toggleGamma", Keyboard.KEY_B, "ControlPack");
		keyBindTorch = new KeyBinding("key.ctrlpack.placeTorch", Keyboard.KEY_V, "ControlPack");
		keyBindEat = new KeyBinding("key.ctrlpack.eatFood", Keyboard.KEY_HOME, "ControlPack");
		keyBindWaypoints = new KeyBinding("key.ctrlpack.waypoints", Keyboard.KEY_PERIOD, "ControlPack");
		keyBindSayLocation = new KeyBinding("key.ctrlpack.saylocation", Keyboard.KEY_INSERT, "ControlPack");
		keyBindings = new KeyBinding[] {
			keyBindTorch,
			keyBindAlternateLeft, keyBindAlternateRight,
			keyBindEat,
			keyBindToggleSneak, keyBindToggleRun, keyBindToggleJump, keyBindToggleMine, keyBindToggleUse,
			keyBindWalkDistance, keyBindLookBehind, keyBindToggleGamma, keyBindSayLocation, keyBindWaypoints
		};		
		LiteModControlPack.regKeys(keyBindings);