Package net.minecraft.inventory

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


    if(needsSynch) {
      for (int i = 0; i < crafters.size(); i++) {
        ICrafting crafter = (ICrafting)crafters.get(i);
        crafter.sendProgressBarUpdate(this, 0, currentItPos);
        crafter.sendProgressBarUpdate(this, 1, maxItPos);
        crafter.sendProgressBarUpdate(this, 2, currentFilter);
      }

      Proxies.net.sendToPlayer(new PacketLetterInfo(PacketIds.LETTER_INFO, EnumAddressee.TRADER, currentTrade, null), player);
      needsSynch = false;
    }
View Full Code Here


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

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

            int railwayType = router.getRoutingController().getCurrentState();
            if (this.lastRoutingState != railwayType)
                var2.sendProgressBarUpdate(this, 1, railwayType);
        }
View Full Code Here

            if (this.lastLockState != lock)
                var2.sendProgressBarUpdate(this, 0, lock);

            int railwayType = router.getRoutingController().getCurrentState();
            if (this.lastRoutingState != railwayType)
                var2.sendProgressBarUpdate(this, 1, railwayType);
        }

        this.lastLockState = router.getLockController().getCurrentState();
        this.lastRoutingState = router.getRoutingController().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.lastEnergy != tile.energy)
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.lastEnergy != tile.energy)
                var2.sendProgressBarUpdate(this, 12, (int) Math.round(tile.energy));

            if (this.lastOutput != tile.currentOutput)
View Full Code Here

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

            if (this.lastEnergy != tile.energy)
                var2.sendProgressBarUpdate(this, 12, (int) Math.round(tile.energy));

            if (this.lastOutput != tile.currentOutput)
                var2.sendProgressBarUpdate(this, 13, (int) Math.round(tile.currentOutput * 100));

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

            if (this.lastEnergy != tile.energy)
                var2.sendProgressBarUpdate(this, 12, (int) Math.round(tile.energy));

            if (this.lastOutput != tile.currentOutput)
                var2.sendProgressBarUpdate(this, 13, (int) Math.round(tile.currentOutput * 100));

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

View Full Code Here

            if (this.lastOutput != tile.currentOutput)
                var2.sendProgressBarUpdate(this, 13, (int) Math.round(tile.currentOutput * 100));

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

        this.lastBurnTime = tile.boiler.burnTime;
        this.lastItemBurnTime = tile.boiler.currentItemBurnTime;
        this.lastEnergy = tile.energy;
View Full Code Here

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

            LocoSpeed speed = loco.getSpeed();
            if (this.lastSpeed != speed)
                var2.sendProgressBarUpdate(this, 10, speed.ordinal());

            LocoMode mode = loco.getMode();
            if (this.lastMode != mode)
                var2.sendProgressBarUpdate(this, 11, mode.ordinal());
View Full Code Here

            if (this.lastSpeed != speed)
                var2.sendProgressBarUpdate(this, 10, speed.ordinal());

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

            int lock = loco.getLockController().getCurrentState();
            if (this.lastLockState != lock)
                var2.sendProgressBarUpdate(this, 12, lock);
        }
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.