Examples of decreaseStackInSlot()


Examples of buildcraft.api.core.IInvSlot.decreaseStackInSlot()

        if (!BuildCraftAPI.isSoftBlock(world, slot.x, slot.y, slot.z)) {
          iterator.remove();
          builtLocations.add(new BlockIndex(slot.x, slot.y, slot.z));
        } else {
          if (builder.consumeEnergy(BuilderAPI.BUILD_ENERGY) && firstSlotToConsume != null) {
            slot.addStackConsumed(firstSlotToConsume.decreaseStackInSlot(1));
            result = slot;
            iterator.remove();
            builtLocations.add(new BlockIndex(slot.x, slot.y, slot.z));

            break;
View Full Code Here

Examples of buildcraft.api.core.IInvSlot.decreaseStackInSlot()

          return;
        }

        if (furnace.getStackInSlot(FUEL_SLOT) == null) {
          IInvSlot s = InvUtils.getItem(robot, new FuelFilter());
          furnace.setInventorySlotContents(FUEL_SLOT, s.decreaseStackInSlot(1));
        }

        if (furnace.getStackInSlot(INPUT_SLOT) == null) {
          IInvSlot s = InvUtils.getItem(robot, new ArrayStackFilter(input));
          furnace.setInventorySlotContents(INPUT_SLOT, s.decreaseStackInSlot(1));
View Full Code Here

Examples of buildcraft.api.core.IInvSlot.decreaseStackInSlot()

          furnace.setInventorySlotContents(FUEL_SLOT, s.decreaseStackInSlot(1));
        }

        if (furnace.getStackInSlot(INPUT_SLOT) == null) {
          IInvSlot s = InvUtils.getItem(robot, new ArrayStackFilter(input));
          furnace.setInventorySlotContents(INPUT_SLOT, s.decreaseStackInSlot(1));
        }

        craftStarted = true;

        if (!robot.hasFreeSlot()) {
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.