Examples of canAddStack()


Examples of forestry.core.inventory.manipulators.InventoryManipulator.canAddStack()

   */
  public static boolean isRoomForStack(ItemStack stack, IInventory dest) {
    if (stack == null || dest == null)
      return false;
    InventoryManipulator im = InventoryManipulator.get(dest);
    return im.canAddStack(stack);
  }

  /**
   * Removes a up to numItems worth of items from the inventory, not caring
   * about what the items are.
View Full Code Here

Examples of mods.railcraft.common.util.inventory.manipulators.InventoryManipulator.canAddStack()

     */
    public static boolean isRoomForStack(ItemStack stack, IInventory dest) {
        if (stack == null || dest == null)
            return false;
        InventoryManipulator im = InventoryManipulator.get(dest);
        return im.canAddStack(stack);
    }

    /**
     * Removes a up to numItems worth of items from the inventory, not caring
     * about what the items are.
View Full Code Here

Examples of mods.railcraft.common.util.inventory.manipulators.InventoryManipulator.canAddStack()

            }
    }

    private void condense(Metal metal) {
        InventoryManipulator im = InventoryManipulator.get(this);
        if (metal.getIngot() != null && im.canRemoveItems(metal.nuggetFilter, 9) && im.canAddStack(metal.getIngot())) {
            im.removeItems(metal.nuggetFilter, 9);
            InvTools.moveItemStack(metal.getIngot(), this);
        }
        if (metal.getBlock() != null && im.canRemoveItems(metal.ingotFilter, 9) && im.canAddStack(metal.getBlock())) {
            im.removeItems(metal.ingotFilter, 9);
View Full Code Here

Examples of mods.railcraft.common.util.inventory.manipulators.InventoryManipulator.canAddStack()

        InventoryManipulator im = InventoryManipulator.get(this);
        if (metal.getIngot() != null && im.canRemoveItems(metal.nuggetFilter, 9) && im.canAddStack(metal.getIngot())) {
            im.removeItems(metal.nuggetFilter, 9);
            InvTools.moveItemStack(metal.getIngot(), this);
        }
        if (metal.getBlock() != null && im.canRemoveItems(metal.ingotFilter, 9) && im.canAddStack(metal.getBlock())) {
            im.removeItems(metal.ingotFilter, 9);
            InvTools.moveItemStack(metal.getBlock(), this);
        }
    }
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.