package me.deftware.client.framework.Wrappers;

import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.KeyBinding;

public class IKeybindWrapper {
	
	public static boolean isPressed(IKeybind bind) {
		return bind.bind.pressed;
	}
	
	public static enum IKeybind {
		
		SNEAK(Minecraft.getMinecraft().gameSettings.keyBindSneak), USEITEM(
				Minecraft.getMinecraft().gameSettings.keyBindUseItem), JUMP(
						Minecraft.getMinecraft().gameSettings.keyBindJump);

		KeyBinding bind;

		IKeybind(KeyBinding bind) {
			this.bind = bind;
		}
		
	}
	
}

@@ -41,16 +41,50 @@
 ppers;%0A%0A
+import org.lwjgl.input.Keyboard;%0A%0A
 import n
@@ -280,16 +280,219 @@
 d;%0A%09%7D%0A%09%0A
+%09public static void setPressed(IKeybind bind, boolean state) %7B%0A%09%09bind.bind.pressed = state;%0A%09%7D%0A%0A%09public static boolean isKeyDown(IKeybind bind) %7B%0A%09%09return Keyboard.isKeyDown(bind.bind.getKeyCode());%0A%09%7D%0A%0A
 %09public 
@@ -708,16 +708,378 @@
 indJump)
+, SPRINT(%0A%09%09%09%09%09%09%09%09Minecraft.getMinecraft().gameSettings.keyBindSprint), FORWARD(%0A%09%09%09%09%09%09%09%09%09%09Minecraft.getMinecraft().gameSettings.keyBindForward), BACK(%0A%09%09%09%09%09%09%09%09%09%09%09%09Minecraft.getMinecraft().gameSettings.keyBindBack), LEFT(%0A%09%09%09%09%09%09%09%09%09%09%09%09%09%09Minecraft.getMinecraft().gameSettings.keyBindLeft), RIGHT(%0A%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09Minecraft.getMinecraft().gameSettings.keyBindRight)
 ;%0A%0A%09%09Key

Add more keys to IKeybindWrapper