package me.deftware.client.framework.Wrappers.Objects.Text;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiTextField;

public class IGuiTextField extends GuiTextField {

	public IGuiTextField(int componentId, int x, int y, int width, int height) {
		super(componentId, Minecraft.getMinecraft().fontRendererObj, x, y, width, height);
	}
	
	public String getTextboxText() {
		return this.getText();
	}
	
	public void setTextboxText(String text) {
		this.setText(text);
	}
	
	public boolean isTextboxFocused() {
		return this.isFocused();
	}
	
	public void setTextboxFocused(boolean state) {
		this.setFocused(state);
	}
	
	/*
	 * Wrappers
	 */
	
	public void onKeyTyped(char typedChar, int keyCode) {
		this.textboxKeyTyped(typedChar, keyCode);
	}
	
	public void onMouseClicked(int mouseX, int mouseY, int mouseButton) {
		this.mouseClicked(mouseX, mouseY, mouseButton);
	}
	
	public void onDraw()  {
		this.drawTextBox();
	}
	
	public void doCursorTick() {
		this.updateCursorCounter();
	}

}

@@ -353,26 +353,25 @@
 height);%0A%09%7D%0A
-%09
 %0A
+
 %09public Stri
@@ -644,32 +644,8 @@
 %7D%0A%09%0A
-%09/*%0A%09 * Wrappers%0A%09 */%0A%09%0A
 %09pub
@@ -948,24 +948,24 @@
 sorTick() %7B%0A
-
 %09%09this.updat
@@ -986,10 +986,332 @@
 ();%0A%09%7D%0A%0A
+%09public int getPosX() %7B%0A%09%09return this.xPosition;%0A%09%7D%0A%0A%09public int getPosY() %7B%0A%09%09return this.yPosition;%0A%09%7D%0A%0A%09public void setPosX(int x) %7B%0A%09%09this.xPosition = x;%0A%09%7D%0A%0A%09public void setPosY(int y) %7B%0A%09%09this.yPosition = y;%0A%09%7D%0A%0A%09public void setIEnableBackgroundDrawing(boolean state) %7B%0A%09%09this.setEnableBackgroundDrawing(state);%0A%09%7D%0A%0A
 %7D%0A

Add IGuiTextField position wrappers