Search in sources :

Example 1 with GuiHelmetMainScreen

use of pneumaticCraft.client.gui.pneumaticHelmet.GuiHelmetMainScreen in project PneumaticCraft by MineMaarten.

the class GuiSearcher method updateScreen.

@Override
public void updateScreen() {
    EntityPlayer player = FMLClientHandler.instance().getClient().thePlayer;
    if (parentScreen instanceof GuiHelmetMainScreen) {
        if (player.getCurrentArmor(3) == null || player.getCurrentArmor(3).getItem() != Itemss.pneumaticHelmet) {
            mc.displayGuiScreen(parentScreen);
            onGuiClosed();
        }
    }
}
Also used : GuiHelmetMainScreen(pneumaticCraft.client.gui.pneumaticHelmet.GuiHelmetMainScreen) EntityPlayer(net.minecraft.entity.player.EntityPlayer)

Aggregations

EntityPlayer (net.minecraft.entity.player.EntityPlayer)1 GuiHelmetMainScreen (pneumaticCraft.client.gui.pneumaticHelmet.GuiHelmetMainScreen)1