aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/client/GuiHelper.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-11 22:24:25 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-11 22:24:25 +0800
commit380007c729d954eb97b7c5479ca114d610b0c0e0 (patch)
tree4ee208a4619d49b8b2536c36086bef40f323ef09 /src/main/java/me/shedaniel/rei/client/GuiHelper.java
parentc9292fa51e69e051569caa9bd6f61572ac8fdeea (diff)
downloadRoughlyEnoughItems-380007c729d954eb97b7c5479ca114d610b0c0e0.tar.gz
RoughlyEnoughItems-380007c729d954eb97b7c5479ca114d610b0c0e0.tar.bz2
RoughlyEnoughItems-380007c729d954eb97b7c5479ca114d610b0c0e0.zip
Fixed Lots of bugs
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/GuiHelper.java')
-rw-r--r--src/main/java/me/shedaniel/rei/client/GuiHelper.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/GuiHelper.java b/src/main/java/me/shedaniel/rei/client/GuiHelper.java
new file mode 100644
index 000000000..09d05ec2c
--- /dev/null
+++ b/src/main/java/me/shedaniel/rei/client/GuiHelper.java
@@ -0,0 +1,29 @@
+package me.shedaniel.rei.client;
+
+import me.shedaniel.rei.gui.ContainerGuiOverlay;
+import me.shedaniel.rei.gui.widget.TextFieldWidget;
+import net.minecraft.client.gui.ContainerGui;
+
+public class GuiHelper {
+
+ private static ContainerGuiOverlay overlay;
+ public static TextFieldWidget searchField;
+
+ public static ContainerGuiOverlay getOverlay(ContainerGui lastGui) {
+ if (overlay == null) {
+ overlay = new ContainerGuiOverlay(lastGui);
+ overlay.onInitialized();
+ }
+ return overlay;
+ }
+
+ public static void setOverlay(ContainerGuiOverlay overlay) {
+ GuiHelper.overlay = overlay;
+ overlay.onInitialized();
+ }
+
+ public static void resetOverlay() {
+ overlay = null;
+ }
+
+}