package info.u_team.u_team_core.gui.elements;

import info.u_team.u_team_core.api.gui.IRenderTickable;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.widget.TextFieldWidget;
import net.minecraft.util.text.ITextComponent;

public class UTextField extends TextFieldWidget implements IRenderTickable {
	
	public UTextField(FontRenderer fontRenderer, int x, int y, int width, int height, TextFieldWidget previousTextField, ITextComponent title) {
		super(fontRenderer, x, y, width, height, previousTextField, title);
	}
	
	@Override
	public void renderTick() {
		tick();
	}
	
}

@@ -411,43 +411,8 @@
 ght,
- TextFieldWidget previousTextField,
  ITe
@@ -478,27 +478,8 @@
 ght,
- previousTextField,
  tit
@@ -542,10 +542,275 @@
 );%0A%09%7D%0A%09%0A
+%09public void setPreviousText(UTextField textField) %7B%0A%09%09text = textField.text;%0A%09%09maxStringLength = textField.maxStringLength;%0A%09%09lineScrollOffset = textField.lineScrollOffset;%0A%09%09cursorPosition = textField.cursorPosition;%0A%09%09selectionEnd = textField.selectionEnd;%0A%09%7D%0A%09%0A
 %7D%0A

Copy things from previous text field