Package net.minecraft.inventory

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


            if (this.lastMode != mode)
                var2.sendProgressBarUpdate(this, 11, mode.ordinal());

            int lock = loco.getLockController().getCurrentState();
            if (this.lastLockState != lock)
                var2.sendProgressBarUpdate(this, 12, lock);
        }

        this.lastSpeed = loco.getSpeed();
        this.lastMode = loco.getMode();
        this.lastLockState = loco.getLockController().getCurrentState();
View Full Code Here


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

            int lock = track.getLockController().getCurrentState();
            if (this.lastLockState != lock)
                var2.sendProgressBarUpdate(this, 0, lock);
        }

        this.lastLockState = track.getLockController().getCurrentState();
    }
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

            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())
                var2.sendProgressBarUpdate(this, 12, (int) Math.round(tile.boiler.getHeat()));

            if (this.wasBurning != tile.boiler.isBurning())
View Full Code Here

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

            if (this.lastHeat != tile.boiler.getHeat())
                var2.sendProgressBarUpdate(this, 12, (int) Math.round(tile.boiler.getHeat()));

            if (this.wasBurning != tile.boiler.isBurning())
                var2.sendProgressBarUpdate(this, 13, tile.boiler.isBurning() ? 1 : 0);
        }
View Full Code Here

            if (this.lastHeat != tile.boiler.getHeat())
                var2.sendProgressBarUpdate(this, 12, (int) Math.round(tile.boiler.getHeat()));

            if (this.wasBurning != tile.boiler.isBurning())
                var2.sendProgressBarUpdate(this, 13, tile.boiler.isBurning() ? 1 : 0);
        }

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

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

            if (this.lastBurnTime != this.bore.getBurnTime()) {
                var2.sendProgressBarUpdate(this, 0, this.bore.getBurnTime());
            }

            if (this.lastFuel != this.bore.getFuel()) {
                var2.sendProgressBarUpdate(this, 1, this.bore.getFuel());
            }
View Full Code Here

            if (this.lastBurnTime != this.bore.getBurnTime()) {
                var2.sendProgressBarUpdate(this, 0, this.bore.getBurnTime());
            }

            if (this.lastFuel != this.bore.getFuel()) {
                var2.sendProgressBarUpdate(this, 1, this.bore.getFuel());
            }
        }

        this.lastBurnTime = this.bore.getBurnTime();
        this.lastFuel = this.bore.getFuel();
View Full Code Here

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

            int lock = actionManager.getLockController().getCurrentState();
            if (this.lastLockState != lock)
                var2.sendProgressBarUpdate(this, 0, lock);
        }

        this.lastLockState = actionManager.getLockController().getCurrentState();
    }
View Full Code Here

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

            if (lastCookTime != furnace.getCookTime())
                player.sendProgressBarUpdate(this, 0, furnace.getCookTime());

            if (lastBurnTime != furnace.burnTime)
                PacketBuilder.instance().sendGuiIntegerPacket((EntityPlayerMP) player, windowId, 1, furnace.burnTime);

            if (lastItemBurnTime != furnace.currentItemBurnTime)
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.