Package net.minecraft.inventory

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


            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.prevMinutesRemaining != mins)
                var2.sendProgressBarUpdate(this, 0, mins);
        }

        this.prevMinutesRemaining = mins;
    }
View Full Code Here

        PowerReceiver provider = tile.getPowerReceiver(null);
        for (int i = 0; i < crafters.size(); i++) {
            ICrafting icrafting = (ICrafting) crafters.get(i);

            if (lastProcessTime != tile.getProcessTime())
                icrafting.sendProgressBarUpdate(this, 0, tile.getProcessTime());

            if (provider != null)
                icrafting.sendProgressBarUpdate(this, 1, (int) provider.getEnergyStored());
        }
View Full Code Here

            if (lastProcessTime != tile.getProcessTime())
                icrafting.sendProgressBarUpdate(this, 0, tile.getProcessTime());

            if (provider != null)
                icrafting.sendProgressBarUpdate(this, 1, (int) provider.getEnergyStored());
        }

        lastProcessTime = tile.getProcessTime();
    }
View Full Code Here

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


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

        lastCookTime = cookTime;
    }
View Full Code Here

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

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

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

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, Math.round(tile.currentOutput * 100));
        }

        this.lastEnergy = tile.energy;
        this.lastOutput = tile.currentOutput;
    }
View Full Code Here

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

            if (lastOutput != Math.round(tile.output))
                icrafting.sendProgressBarUpdate(this, 0, Math.round(tile.output));
        }
        lastOutput = Math.round(tile.output);
    }

    @Override
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.