aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/gui/bingui/BinGuiManager.java
blob: fe70177d2e2838e7ee0eeb9eff78bc22f660e98f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package de.torui.coflsky.gui.bingui;

import de.torui.coflsky.CoflSky;
import de.torui.coflsky.gui.GUIType;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiChest;
import net.minecraft.inventory.InventoryBasic;
import org.lwjgl.input.Mouse;

public class BinGuiManager {

    public static void openNewFlipGui(String message, String extraData) {
        if( CoflSky.config.purchaseOverlay != GUIType.COFL){
            return;
        }

        GuiChest currentGui = new BinGuiCurrent(Minecraft.getMinecraft().thePlayer.inventory, new InventoryBasic("", false, 27), message, extraData);
        Mouse.setGrabbed(false);
        Minecraft.getMinecraft().displayGuiScreen(currentGui);
    }
}