aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/client/GuiHelper.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-12 00:45:21 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-12 00:45:21 +0800
commit7372ee5e9592a79ab862dbb498cc2c5513fe3533 (patch)
treed852845a9a2320b49ece225ce60e23b1fdd167e0 /src/main/java/me/shedaniel/rei/client/GuiHelper.java
parent380007c729d954eb97b7c5479ca114d610b0c0e0 (diff)
downloadRoughlyEnoughItems-7372ee5e9592a79ab862dbb498cc2c5513fe3533.tar.gz
RoughlyEnoughItems-7372ee5e9592a79ab862dbb498cc2c5513fe3533.tar.bz2
RoughlyEnoughItems-7372ee5e9592a79ab862dbb498cc2c5513fe3533.zip
KeyBinds
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/GuiHelper.java')
-rw-r--r--src/main/java/me/shedaniel/rei/client/GuiHelper.java9
1 files changed, 9 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
index 09d05ec2c..21ff9c058 100644
--- a/src/main/java/me/shedaniel/rei/client/GuiHelper.java
+++ b/src/main/java/me/shedaniel/rei/client/GuiHelper.java
@@ -6,9 +6,18 @@ import net.minecraft.client.gui.ContainerGui;
public class GuiHelper {
+ private static boolean overlayVisible = true;
private static ContainerGuiOverlay overlay;
public static TextFieldWidget searchField;
+ public static boolean isOverlayVisible() {
+ return overlayVisible;
+ }
+
+ public static void toggleOverlayVisible() {
+ overlayVisible = !overlayVisible;
+ }
+
public static ContainerGuiOverlay getOverlay(ContainerGui lastGui) {
if (overlay == null) {
overlay = new ContainerGuiOverlay(lastGui);