return invUtil.getMultipleItems(wanteditem, Math.min(count, available));
}
private ItemStack extractFromIInventoryFiltered(IInventory inv, ItemIdentifierInventory filter, boolean isExcluded, int filterInvLimit) {
IInventoryUtil invUtil = SimpleServiceLocator.inventoryUtilFactory.getInventoryUtil(inv);
ItemIdentifier wanteditem = null;
for(ItemIdentifier item:invUtil.getItemsAndCount().keySet()) {
if(isExcluded) {
boolean found = false;
for(int i=0;i<filter.getSizeInventory() && i < filterInvLimit;i++) {
ItemIdentifierStack identStack = filter.getIDStackInSlot(i);