Examples of ICrafting


Examples of net.minecraft.inventory.ICrafting

    @Override
    public void detectAndSendChanges() {
        super.detectAndSendChanges();

        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());
            }
        }

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

Examples of net.minecraft.inventory.ICrafting

    @Override
    public void detectAndSendChanges() {
        super.detectAndSendChanges();

        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

Examples of net.minecraft.inventory.ICrafting

    @Override
    public void detectAndSendChanges() {
        super.detectAndSendChanges();

        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

Examples of net.minecraft.inventory.ICrafting

            tMan.updateGuiData(this, crafters, 0);
            tMan.updateGuiData(this, crafters, 1);
        }

        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())
                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

Examples of net.minecraft.inventory.ICrafting

    @Override
    public void detectAndSendChanges() {
        super.detectAndSendChanges();

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

            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)
                player.sendProgressBarUpdate(this, 3, device.transferRate);
        }

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

Examples of net.minecraft.inventory.ICrafting

    @Override
    public void detectAndSendChanges() {
        super.detectAndSendChanges();

        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()));
        }
    }
View Full Code Here

Examples of net.minecraft.inventory.ICrafting

        TankManager tMan = tile.getTankManager();
        if (tMan != null)
            tMan.updateGuiData(this, crafters, 0);

        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);
        }

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

Examples of net.minecraft.inventory.ICrafting

            tMan.updateGuiData(this, crafters, 0);
            tMan.updateGuiData(this, crafters, 1);
        }

        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())
                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

Examples of net.minecraft.inventory.ICrafting

    @Override
    public void detectAndSendChanges() {
        super.detectAndSendChanges();

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

            if (lastEnergy != cart.getEnergy())
                PacketBuilder.instance().sendGuiIntegerPacket((EntityPlayerMP) player, windowId, 0, (int)cart.getEnergy());
        }
View Full Code Here

Examples of net.minecraft.inventory.ICrafting

    public void detectAndSendChanges() {
        super.detectAndSendChanges();
        short mins = getMinutesRemaining(anchor.getAnchorFuel());

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

            if (this.prevMinutesRemaining != mins)
                var2.sendProgressBarUpdate(this, 0, mins);
        }

        this.prevMinutesRemaining = mins;
    }
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.