From 3e1f4333a51513b440b32adfe9b698590fbf76f5 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 30 Dec 2018 20:10:36 +0800 Subject: Better stuff --- src/main/java/me/shedaniel/gui/widget/TextBox.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/me/shedaniel/gui/widget/TextBox.java') diff --git a/src/main/java/me/shedaniel/gui/widget/TextBox.java b/src/main/java/me/shedaniel/gui/widget/TextBox.java index 40cf9924b..3798fa5fc 100755 --- a/src/main/java/me/shedaniel/gui/widget/TextBox.java +++ b/src/main/java/me/shedaniel/gui/widget/TextBox.java @@ -1,6 +1,6 @@ package me.shedaniel.gui.widget; -import me.shedaniel.gui.AEIRenderHelper; +import me.shedaniel.gui.REIRenderHelper; import net.minecraft.client.gui.GuiTextField; import java.awt.*; @@ -14,7 +14,7 @@ public class TextBox extends Control implements IFocusable { public TextBox(int x, int y, int width, int height) { super(x, y, width, height); - textField = new GuiTextField(-1, AEIRenderHelper.getFontRenderer(), x, y, width, height); + textField = new GuiTextField(-1, REIRenderHelper.getFontRenderer(), x, y, width, height); this.onClick = this::doMouseClick; this.onKeyDown = this::onKeyPressed; this.charPressed = this::charTyped; @@ -36,7 +36,7 @@ public class TextBox extends Control implements IFocusable { } protected boolean doMouseClick(int button) { - Point mouseLoc = AEIRenderHelper.getMouseLoc(); + Point mouseLoc = REIRenderHelper.getMouseLoc(); if (!hasFocus()) setFocused(true); return textField.mouseClicked(mouseLoc.x, mouseLoc.y, 0); @@ -45,7 +45,7 @@ public class TextBox extends Control implements IFocusable { protected boolean onKeyPressed(int first, int second, int third) { boolean handled = textField.keyPressed(first, second, third); if (handled) { - AEIRenderHelper.updateSearch(); + REIRenderHelper.updateSearch(); } return handled; @@ -61,7 +61,7 @@ public class TextBox extends Control implements IFocusable { protected void charTyped(char p_charTyped_1_, int p_charTyped_2_) { textField.charTyped(p_charTyped_1_, p_charTyped_2_); - AEIRenderHelper.updateSearch(); + REIRenderHelper.updateSearch(); } @Override -- cgit