Examples of decrStackSize()


Examples of buildcraft.silicon.TileIntegrationTable.decrStackSize()

      if (inputB != null) {
        inputB = inputB.copy();
      }
    } else {
      inputA = table.decrStackSize(TileIntegrationTable.SLOT_INPUT_A, 1);
      inputB = table.decrStackSize(TileIntegrationTable.SLOT_INPUT_B, 1);
    }

    return craft(table, preview, inputA, inputB);
  }
View Full Code Here

Examples of buildcraft.silicon.TileIntegrationTable.decrStackSize()

      if (inputB != null) {
        inputB = inputB.copy();
      }
    } else {
      inputA = table.decrStackSize(TileIntegrationTable.SLOT_INPUT_A, 1);
      inputB = table.decrStackSize(TileIntegrationTable.SLOT_INPUT_B, 1);
    }

    return craft(table, preview, inputA, inputB);
  }
View Full Code Here

Examples of logisticspipes.interfaces.IInventoryUtil.decrStackSize()

        if (_dischargeMode && SimpleServiceLocator.IC2Proxy.isFullyDischarged(stack)) {
          Triplet<Integer, SinkReply, List<IFilter>> reply = SimpleServiceLocator.logisticsManager.hasDestinationWithMinPriority(ItemIdentifier.get(stack), _service.getSourceID(), true, FixedPriority.ElectricBuffer);
          if(reply == null) continue;
          if(_service.useEnergy(10)) {
            _service.spawnParticle(Particles.OrangeParticle, 2);
            _service.sendStack(inv.decrStackSize(i,1), reply, ItemSendMode.Normal);
            return;
          }
        }
        //If item set to charge  and its fully charged, then extract it.
        if (!_dischargeMode && SimpleServiceLocator.IC2Proxy.isFullyCharged(stack)) {
View Full Code Here

Examples of logisticspipes.interfaces.IInventoryUtil.decrStackSize()

        if (!_dischargeMode && SimpleServiceLocator.IC2Proxy.isFullyCharged(stack)) {
          Triplet<Integer, SinkReply, List<IFilter>> reply = SimpleServiceLocator.logisticsManager.hasDestinationWithMinPriority(ItemIdentifier.get(stack), _service.getSourceID(), true, FixedPriority.ElectricBuffer);
          if(reply == null) continue;
          if(_service.useEnergy(10)) {
            _service.spawnParticle(Particles.OrangeParticle, 2);
            _service.sendStack(inv.decrStackSize(i,1), reply, ItemSendMode.Normal);
            return;
          }
        }
      }
    }
View Full Code Here

Examples of logisticspipes.interfaces.IInventoryUtil.decrStackSize()

        if(count <= 0) {
          break;
        }

        ItemStack stackToSend = targetUtil.decrStackSize(i, count);
        if(stackToSend == null || stackToSend.stackSize == 0) break;
        count = stackToSend.stackSize;
        _service.sendStack(stackToSend, reply, itemSendMode());
        itemsleft -= count;
        if(itemsleft <= 0) break;
View Full Code Here

Examples of logisticspipes.interfaces.IInventoryUtil.decrStackSize()

      ItemStack returned = null;
      int amountToExtract = sizePrev - slot.stackSize;
      if(slot.stackSize > 0) {
        partialSend = true;
      }
      returned = invUtil.decrStackSize(lastStackLookedAt, amountToExtract);
      if(returned.stackSize != amountToExtract) {
        throw new UnsupportedOperationException("Couldn't extract the already sended items from the inventory.");
      }
 
      lastSuceededStack=lastStackLookedAt;
View Full Code Here

Examples of logisticspipes.interfaces.IInventoryUtil.decrStackSize()

      if (stack == null) continue;
      if (SimpleServiceLocator.IC2Proxy.isElectricItem(stack)) {
        Triplet<Integer, SinkReply, List<IFilter>> reply = SimpleServiceLocator.logisticsManager.hasDestinationWithMinPriority(ItemIdentifier.get(stack), _service.getSourceID(), true, FixedPriority.ElectricManager);
        if(reply == null) continue;
        _service.spawnParticle(Particles.OrangeParticle, 2);
        _service.sendStack(inv.decrStackSize(i, 1), reply, ItemSendMode.Normal);
        return;
      }
      continue;
    }
  }
View Full Code Here

Examples of logisticspipes.interfaces.IInventoryUtil.decrStackSize()

          if (SimpleServiceLocator.forestryProxy.isAnalysedBee(item)) {
            Pair<Integer, SinkReply> reply = _service.hasDestination(ItemIdentifier.get(item), true, new ArrayList<Integer>());
            if (reply == null)
              continue;
            if (_service.useEnergy(6)) {
              _service.sendStack(inv.decrStackSize(i, 1), reply, ItemSendMode.Normal);
            }
          }
        }
      }
    }
View Full Code Here

Examples of net.minecraft.entity.player.InventoryPlayer.decrStackSize()

            }

            return itemStack;
        } else {
            InventoryPlayer inventoryPlayer = getPlayerInventory();
            return inventoryPlayer != null ? inventoryPlayer.decrStackSize(slot - 4, amount) : null;
        }
    }

    @Override
    public ItemStack getStackInSlotOnClosing(int slot){
View Full Code Here

Examples of net.minecraft.inventory.IInventory.decrStackSize()

                        {
                          return 1;
                        }

                        ItemStack copyStack = checkStack.copy();
                        inventory.decrStackSize(i, 1);
                        ((ItemBlock) copyStack.getItem()).placeBlockAt(copyStack, null, ((TileEntity) projector).worldObj, position.intX(), position.intY(), position.intZ(), 0, 0, 0, 0, metadata);
                        PacketHandler.sendPacketToClients(ModularForceFieldSystem.PACKET_TILE.getPacket((TileEntity) projector, TilePacketType.FXS.ordinal(), 1, position.intX(), position.intY(), position.intZ()), ((TileEntity) projector).worldObj);

                        if (this.blockCount++ >= projector.getModuleCount(ModularForceFieldSystem.itemModuleSpeed) / 3)
                        {
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.