Package net.minecraft.inventory

Examples of net.minecraft.inventory.ICrafting


    {
        super.detectAndSendChanges();

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

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

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

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

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


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

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

      for (int slot = 0; slot < pipe.slotColors.length; slot++) {
        if (prevSlotColors[slot] != pipe.slotColors[slot]) {
          player.sendProgressBarUpdate(this, slot, pipe.slotColors[slot]);
        }
      }
    }
    System.arraycopy(pipe.slotColors, 0, prevSlotColors, 0, pipe.slotColors.length);
  }
View Full Code Here

    int state = calculateTriggerState();

    if (state != lastTriggerState) {
      for (int i = 0; i < this.crafters.size(); i++) {
        ICrafting viewingPlayer = (ICrafting) this.crafters.get(i);

        viewingPlayer.sendProgressBarUpdate(this, 0 /* State update */, state);
      }

      lastTriggerState = state;
    }
  }
View Full Code Here

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

      if (lastProgress != tile.progress) {
        icrafting.sendProgressBarUpdate(this, 0, tile.progress);
      }
    }

    ItemStack output = craftResult.getStackInSlot(0);
    if (output != prevOutput) {
View Full Code Here

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

    for (int i = 0; i < crafters.size(); i++) {
      ICrafting icrafting = (ICrafting) crafters.get(i);
      if (computingTime != architect.getComputingProgressScaled(24)) {
        icrafting.sendProgressBarUpdate(this, 0, architect.getComputingProgressScaled(24));
      }
    }

    computingTime = architect.getComputingProgressScaled(24);
  }
View Full Code Here

  @Override
  public void detectAndSendChanges() {
    super.detectAndSendChanges();
    for (int i = 0; i < crafters.size(); i++) {
      ICrafting icrafting = (ICrafting) crafters.get(i);
      if (progressIn != library.progressIn) {
        icrafting.sendProgressBarUpdate(this, 0, library.progressIn);
      }
      if (progressOut != library.progressOut) {
        icrafting.sendProgressBarUpdate(this, 1, library.progressOut);
      }
    }

    progressIn = library.progressIn;
    progressOut = library.progressOut;
View Full Code Here

TOP

Related Classes of net.minecraft.inventory.ICrafting

Copyright © 2018 www.massapicom. 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.