Search in sources :

Example 1 with GuiSearcher

use of me.desht.pneumaticcraft.client.gui.GuiSearcher in project pnc-repressurized by TeamPneumatic.

the class GuiSearchUpgradeOptions method actionPerformed.

@Override
public void actionPerformed(GuiButton button) {
    if (button.id == 10) {
        searchGui = new GuiSearcher(player);
        if (!player.getItemStackFromSlot(EntityEquipmentSlot.HEAD).isEmpty()) {
            searchGui.setSearchStack(ItemPneumaticArmor.getSearchedStack(player.getItemStackFromSlot(EntityEquipmentSlot.HEAD)));
        }
        FMLClientHandler.instance().showGuiScreen(searchGui);
    } else {
        FMLCommonHandler.instance().showGuiScreen(new GuiMoveStat(renderHandler));
    }
}
Also used : GuiSearcher(me.desht.pneumaticcraft.client.gui.GuiSearcher)

Example 2 with GuiSearcher

use of me.desht.pneumaticcraft.client.gui.GuiSearcher in project pnc-repressurized by TeamPneumatic.

the class GuiProgWidgetItemFilter method actionPerformed.

@Override
public void actionPerformed(GuiButton button) throws IOException {
    if (button.id == 0) {
        searchGui = new GuiSearcher(FMLClientHandler.instance().getClient().player);
        searchGui.setSearchStack(widg.getFilter());
        FMLClientHandler.instance().showGuiScreen(searchGui);
    } else if (button.id == 1) {
        invSearchGui = new GuiInventorySearcher(FMLClientHandler.instance().getClient().player);
        invSearchGui.setSearchStack(widg.getFilter());
        FMLClientHandler.instance().showGuiScreen(invSearchGui);
    } else if (button.id == 2) {
        if (--widg.specificMeta < 0)
            widg.specificMeta = 15;
    } else if (button.id == 3) {
        if (++widg.specificMeta > 15)
            widg.specificMeta = 0;
    }
    super.actionPerformed(button);
}
Also used : GuiSearcher(me.desht.pneumaticcraft.client.gui.GuiSearcher) GuiInventorySearcher(me.desht.pneumaticcraft.client.gui.GuiInventorySearcher)

Aggregations

GuiSearcher (me.desht.pneumaticcraft.client.gui.GuiSearcher)2 GuiInventorySearcher (me.desht.pneumaticcraft.client.gui.GuiInventorySearcher)1