Package net.minecraft.inventory

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


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

            if (lastProgress != tile.getProgress())
                icrafting.sendProgressBarUpdate(this, 0, tile.getProgress());

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


            if (lastProgress != tile.getProgress())
                icrafting.sendProgressBarUpdate(this, 0, tile.getProgress());

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

        ItemStack output = tile.getStackInSlot(0);
        if (!InvTools.isItemEqualStrict(output, prevOutput)) {
            onCraftMatrixChanged(craftMatrix);
View Full Code Here

                int fluidAmount = 0;
                if (fluidStack != null) {
                    fluidId = fluidStack.fluidID;
                    fluidAmount = fluidStack.amount;
                }
                crafter.sendProgressBarUpdate(container, tankIndex * NETWORK_DATA + 0, fluidId);
                PacketBuilder.instance().sendGuiIntegerPacket(player, container.windowId, tankIndex * NETWORK_DATA + 1, fluidAmount);
            } else if (fluidStack != null && prev != null) {
                if (fluidStack.getFluid() != prev.getFluid())
                    crafter.sendProgressBarUpdate(container, tankIndex * NETWORK_DATA + 0, fluidStack.fluidID);
                if (fluidStack.amount != prev.amount)
View Full Code Here

                }
                crafter.sendProgressBarUpdate(container, tankIndex * NETWORK_DATA + 0, fluidId);
                PacketBuilder.instance().sendGuiIntegerPacket(player, container.windowId, tankIndex * NETWORK_DATA + 1, fluidAmount);
            } else if (fluidStack != null && prev != null) {
                if (fluidStack.getFluid() != prev.getFluid())
                    crafter.sendProgressBarUpdate(container, tankIndex * NETWORK_DATA + 0, fluidStack.fluidID);
                if (fluidStack.amount != prev.amount)
                    PacketBuilder.instance().sendGuiIntegerPacket(player, container.windowId, tankIndex * NETWORK_DATA + 1, fluidStack.amount);
                if (color != pColor)
                    PacketBuilder.instance().sendGuiIntegerPacket(player, container.windowId, tankIndex * NETWORK_DATA + 2, color);
            }
View Full Code Here

        {
            ICrafting icrafting = (ICrafting) crafter;

            if (this.lastCookTime != this.tileEntityCalcinator.deviceCookTime)
            {
                icrafting.sendProgressBarUpdate(this, 0, this.tileEntityCalcinator.deviceCookTime);
            }

            if (this.lastBurnTime != this.tileEntityCalcinator.fuelBurnTime)
            {
                icrafting.sendProgressBarUpdate(this, 1, this.tileEntityCalcinator.fuelBurnTime);
View Full Code Here

                icrafting.sendProgressBarUpdate(this, 0, this.tileEntityCalcinator.deviceCookTime);
            }

            if (this.lastBurnTime != this.tileEntityCalcinator.fuelBurnTime)
            {
                icrafting.sendProgressBarUpdate(this, 1, this.tileEntityCalcinator.fuelBurnTime);
            }

            if (this.lastItemCookTime != this.tileEntityCalcinator.itemCookTime)
            {
                icrafting.sendProgressBarUpdate(this, 2, this.tileEntityCalcinator.itemCookTime);
View Full Code Here

                icrafting.sendProgressBarUpdate(this, 1, this.tileEntityCalcinator.fuelBurnTime);
            }

            if (this.lastItemCookTime != this.tileEntityCalcinator.itemCookTime)
            {
                icrafting.sendProgressBarUpdate(this, 2, this.tileEntityCalcinator.itemCookTime);
            }
        }

        this.lastCookTime = this.tileEntityCalcinator.deviceCookTime;
        this.lastBurnTime = this.tileEntityCalcinator.fuelBurnTime;
View Full Code Here

        {
            ICrafting icrafting = (ICrafting) crafter;

            if (this.lastItemLearnTime != this.tileEntityResearchStation.itemLearnTime)
            {
                icrafting.sendProgressBarUpdate(this, 0, this.tileEntityResearchStation.itemLearnTime);
            }
        }

        this.lastItemLearnTime = this.tileEntityResearchStation.itemLearnTime;
    }
View Full Code Here

        {
            ICrafting icrafting = (ICrafting) crafter;

            if (this.lastDeviceCookTime != this.tileEntityAludel.deviceCookTime)
            {
                icrafting.sendProgressBarUpdate(this, 0, this.tileEntityAludel.deviceCookTime);
            }

            if (this.lastFuelBurnTime != this.tileEntityAludel.fuelBurnTime)
            {
                icrafting.sendProgressBarUpdate(this, 1, this.tileEntityAludel.fuelBurnTime);
View Full Code Here

                icrafting.sendProgressBarUpdate(this, 0, this.tileEntityAludel.deviceCookTime);
            }

            if (this.lastFuelBurnTime != this.tileEntityAludel.fuelBurnTime)
            {
                icrafting.sendProgressBarUpdate(this, 1, this.tileEntityAludel.fuelBurnTime);
            }

            if (this.lastItemCookTime != this.tileEntityAludel.itemCookTime)
            {
                icrafting.sendProgressBarUpdate(this, 2, this.tileEntityAludel.itemCookTime);
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.