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));
}
}
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);
}
Aggregations