diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2018-12-30 20:10:36 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2018-12-30 20:10:36 +0800 |
| commit | 3e1f4333a51513b440b32adfe9b698590fbf76f5 (patch) | |
| tree | cf337b4e12df85cd30d25721bab6c1ba1f4591f8 /src/main/java/me/shedaniel/gui/widget/TextBox.java | |
| parent | 814e2e94ad643f04576ab0569c4b94f96b275f51 (diff) | |
| download | RoughlyEnoughItems-3e1f4333a51513b440b32adfe9b698590fbf76f5.tar.gz RoughlyEnoughItems-3e1f4333a51513b440b32adfe9b698590fbf76f5.tar.bz2 RoughlyEnoughItems-3e1f4333a51513b440b32adfe9b698590fbf76f5.zip | |
Better stuff
Diffstat (limited to 'src/main/java/me/shedaniel/gui/widget/TextBox.java')
| -rwxr-xr-x | src/main/java/me/shedaniel/gui/widget/TextBox.java | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
