Examples of sendProgressBarUpdate()


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

        crafter.sendProgressBarUpdate(this, 3, energy >>> 16);
      }

      if (opMode != tileentity.opMode)
      {
        crafter.sendProgressBarUpdate(this, 4, tileentity.opMode);
      }
    }
    opMode = tileentity.opMode;
    average = syncAvg;
    itemsEnergyTotal = energy;
View Full Code Here

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

    for(int i = 0; i < crafters.size(); i++)
    {
      ICrafting crafter = (ICrafting)crafters.get(i);
      if(crafter != null)
      {
        crafter.sendProgressBarUpdate(this, 100, (_jukebox.getCanCopy() ? 1 : 0) | (_jukebox.getCanPlay() ? 2 : 0));
      }
    }
  }
 
  @Override
View Full Code Here

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

        {
            ICrafting var2 = (ICrafting)this.crafters.get(var1);

            if (this.lastCookTime != this.furnace.furnaceCookTime)
            {
                var2.sendProgressBarUpdate(this, 0, this.furnace.furnaceCookTime);
            }

            if (this.lastBurnTime != this.furnace.furnaceBurnTime)
            {
                var2.sendProgressBarUpdate(this, 1, this.furnace.furnaceBurnTime);
View Full Code Here

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

                var2.sendProgressBarUpdate(this, 0, this.furnace.furnaceCookTime);
            }

            if (this.lastBurnTime != this.furnace.furnaceBurnTime)
            {
                var2.sendProgressBarUpdate(this, 1, this.furnace.furnaceBurnTime);
            }

            if (this.lastItemBurnTime != this.furnace.currentItemBurnTime)
            {
                var2.sendProgressBarUpdate(this, 2, this.furnace.currentItemBurnTime);
View Full Code Here

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

                var2.sendProgressBarUpdate(this, 1, this.furnace.furnaceBurnTime);
            }

            if (this.lastItemBurnTime != this.furnace.currentItemBurnTime)
            {
                var2.sendProgressBarUpdate(this, 2, this.furnace.currentItemBurnTime);
            }
        }

        this.lastCookTime = this.furnace.furnaceCookTime;
        this.lastBurnTime = this.furnace.furnaceBurnTime;
View Full Code Here

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

    {
      ICrafting icrafting = (ICrafting)crafters.get(i);

      if(lastCookTime != robit.furnaceCookTime)
      {
        icrafting.sendProgressBarUpdate(this, 0, robit.furnaceCookTime);
      }

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

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

        icrafting.sendProgressBarUpdate(this, 0, robit.furnaceCookTime);
      }

      if(lastBurnTime != robit.furnaceBurnTime)
      {
        icrafting.sendProgressBarUpdate(this, 1, robit.furnaceBurnTime);
      }

      if(lastItemBurnTime != robit.currentItemBurnTime)
      {
        icrafting.sendProgressBarUpdate(this, 2, robit.currentItemBurnTime);
View Full Code Here

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

        icrafting.sendProgressBarUpdate(this, 1, robit.furnaceBurnTime);
      }

      if(lastItemBurnTime != robit.currentItemBurnTime)
      {
        icrafting.sendProgressBarUpdate(this, 2, robit.currentItemBurnTime);
      }
    }

    lastCookTime = robit.furnaceCookTime;
    lastBurnTime = robit.furnaceBurnTime;
View Full Code Here

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

    super.detectAndSendChanges();

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

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