Package pneumaticCraft.common.network

Examples of pneumaticCraft.common.network.PacketUseItem


            }
            if(mouseButton == 2 && !slotHacked[slot.slotNumber] && ((GuiSecurityStationHacking)gui).hasNukeViruses()) {
                int linesBefore = lineList.size();
                if(tryToHackSlot(slot.slotNumber)) {
                    EntityPlayer player = FMLClientHandler.instance().getClient().thePlayer;
                    NetworkHandler.sendToServer(new PacketUseItem(Itemss.nukeVirus, 1));
                    player.inventory.consumeInventoryItem(Itemss.nukeVirus);

                    for(int i = linesBefore; i < lineList.size(); i++) {
                        RenderProgressingLine line = lineList.get(i);
                        line.setProgress(1);
View Full Code Here


    protected void mouseClicked(int par1, int par2, int par3){
        if(par3 != 2) super.mouseClicked(par1, par2, par3);
        hackerBridges.mouseClicked(par1, par2, par3, getSlotAtPosition(par1, par2));
        if(aiBridges.isTracing() && par1 >= guiLeft + 155 && par1 <= guiLeft + 171 && par2 >= guiTop + 55 && par2 <= guiTop + 75) {
            EntityPlayer player = FMLClientHandler.instance().getClient().thePlayer;
            NetworkHandler.sendToServer(new PacketUseItem(Itemss.stopWorm, 1));
            player.inventory.consumeInventoryItem(Itemss.stopWorm);
            aiBridges.applyStopWorm();
        }
    }
View Full Code Here

TOP

Related Classes of pneumaticCraft.common.network.PacketUseItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.