Package net.minecraft.inventory

Examples of net.minecraft.inventory.ICrafting.sendProgressBarUpdate()


        for (int var1 = 0; var1 < this.crafters.size(); ++var1) {
            ICrafting var2 = (ICrafting) this.crafters.get(var1);

            if (this.lastBurnTime != loco.boiler.burnTime)
                var2.sendProgressBarUpdate(this, 20, (int) Math.round(loco.boiler.burnTime));

            if (this.lastItemBurnTime != loco.boiler.currentItemBurnTime)
                var2.sendProgressBarUpdate(this, 21, (int) Math.round(loco.boiler.currentItemBurnTime));

            if (this.lastHeat != loco.boiler.getHeat())
View Full Code Here


            if (this.lastBurnTime != loco.boiler.burnTime)
                var2.sendProgressBarUpdate(this, 20, (int) Math.round(loco.boiler.burnTime));

            if (this.lastItemBurnTime != loco.boiler.currentItemBurnTime)
                var2.sendProgressBarUpdate(this, 21, (int) Math.round(loco.boiler.currentItemBurnTime));

            if (this.lastHeat != loco.boiler.getHeat())
                var2.sendProgressBarUpdate(this, 22, (int) Math.round(loco.boiler.getHeat()));
        }
View Full Code Here

            if (this.lastItemBurnTime != loco.boiler.currentItemBurnTime)
                var2.sendProgressBarUpdate(this, 21, (int) Math.round(loco.boiler.currentItemBurnTime));

            if (this.lastHeat != loco.boiler.getHeat())
                var2.sendProgressBarUpdate(this, 22, (int) Math.round(loco.boiler.getHeat()));
        }

        this.lastBurnTime = loco.boiler.burnTime;
        this.lastItemBurnTime = loco.boiler.currentItemBurnTime;
        this.lastHeat = loco.boiler.getHeat();
View Full Code Here

            if (lastEnergy != device.getEnergy())
                PacketBuilder.instance().sendGuiIntegerPacket((EntityPlayerMP) player, windowId, 0, (int) device.getEnergy());

            if (lastStorage != device.storageUpgrades)
                player.sendProgressBarUpdate(this, 1, device.storageUpgrades);

            if (lastLapo != device.lapotronUpgrades)
                player.sendProgressBarUpdate(this, 2, device.lapotronUpgrades);

            if (lastLapo != device.transferRate)
View Full Code Here

            if (lastStorage != device.storageUpgrades)
                player.sendProgressBarUpdate(this, 1, device.storageUpgrades);

            if (lastLapo != device.lapotronUpgrades)
                player.sendProgressBarUpdate(this, 2, device.lapotronUpgrades);

            if (lastLapo != device.transferRate)
                player.sendProgressBarUpdate(this, 3, device.transferRate);
        }
View Full Code Here

            if (lastLapo != device.lapotronUpgrades)
                player.sendProgressBarUpdate(this, 2, device.lapotronUpgrades);

            if (lastLapo != device.transferRate)
                player.sendProgressBarUpdate(this, 3, device.transferRate);
        }

        lastEnergy = (int) device.getEnergy();
        lastStorage = device.storageUpgrades;
        lastLapo = device.lapotronUpgrades;
View Full Code Here

        for (int var1 = 0; var1 < this.crafters.size(); ++var1) {
            ICrafting var2 = (ICrafting) this.crafters.get(var1);

            if (this.lastCharge != chargeHandler.getCharge())
                var2.sendProgressBarUpdate(this, 21, (int) Math.round(chargeHandler.getCharge()));
        }
    }

    @Override
    @SideOnly(Side.CLIENT)
View Full Code Here

        for (int i = 0; i < crafters.size(); i++) {
            ICrafting icrafting = (ICrafting) crafters.get(i);

            int cookTime = tile.getCookTime();
            if (lastCookTime != cookTime)
                icrafting.sendProgressBarUpdate(this, 10, cookTime);

            int cookTimeTotal = tile.getTotalCookTime();
            if (lastCookTimeTotal != cookTimeTotal)
                icrafting.sendProgressBarUpdate(this, 11, cookTimeTotal);
        }
View Full Code Here

            if (lastCookTime != cookTime)
                icrafting.sendProgressBarUpdate(this, 10, cookTime);

            int cookTimeTotal = tile.getTotalCookTime();
            if (lastCookTimeTotal != cookTimeTotal)
                icrafting.sendProgressBarUpdate(this, 11, cookTimeTotal);
        }

        lastCookTime = tile.getCookTime();
        lastCookTimeTotal = tile.getTotalCookTime();
    }
View Full Code Here

        for (int var1 = 0; var1 < this.crafters.size(); ++var1) {
            ICrafting var2 = (ICrafting) this.crafters.get(var1);

            if (this.lastBurnTime != tile.boiler.burnTime)
                var2.sendProgressBarUpdate(this, 10, (int) Math.round(tile.boiler.burnTime));

            if (this.lastItemBurnTime != tile.boiler.currentItemBurnTime)
                var2.sendProgressBarUpdate(this, 11, (int) Math.round(tile.boiler.currentItemBurnTime));

            if (this.lastHeat != tile.boiler.getHeat())
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.