Search in sources :

Example 1 with GuiRitualVisualizer

use of com.mart.solar.client.gui.GuiRitualVisualizer in project Solar by Martacus.

the class PageRitualComponent method mouseClicked.

@Override
public void mouseClicked(int mouseX, int mouseY) {
    if (!this.hovered) {
        return;
    }
    GuiRitualVisualizer ritualVisualizer = new GuiRitualVisualizer(this.ritual);
    GuiBook book = GuiPagesManager.getPlayerGUI(Minecraft.getMinecraft().player);
    book.setCurrentGui(ritualVisualizer);
    Minecraft.getMinecraft().displayGuiScreen(ritualVisualizer);
}
Also used : GuiRitualVisualizer(com.mart.solar.client.gui.GuiRitualVisualizer) GuiBook(com.mart.solar.client.gui.GuiBook)

Aggregations

GuiBook (com.mart.solar.client.gui.GuiBook)1 GuiRitualVisualizer (com.mart.solar.client.gui.GuiRitualVisualizer)1