Search in sources :

Example 1 with GuiCraftingWindow

use of mekanism.client.gui.element.window.GuiCraftingWindow in project Mekanism by mekanism.

the class GuiQIOItemViewer method transferWindows.

protected void transferWindows(Collection<GuiWindow> windows) {
    for (GuiWindow window : windows) {
        // Transition all current popup windows over to the new screen.
        if (window instanceof GuiCraftingWindow) {
            // Updating the references for listeners and the like for crafting windows
            craftingWindowTab.adoptWindows(window);
            // Update the container the virtual slots point to be correct
            ((GuiCraftingWindow) window).updateContainer(menu);
        }
        addWindow(window);
        window.transferToNewGui(this);
    }
}
Also used : GuiWindow(mekanism.client.gui.element.window.GuiWindow) GuiCraftingWindow(mekanism.client.gui.element.window.GuiCraftingWindow)

Aggregations

GuiCraftingWindow (mekanism.client.gui.element.window.GuiCraftingWindow)1 GuiWindow (mekanism.client.gui.element.window.GuiWindow)1