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);
if(identStack == null) continue;
if(identStack.getItem().equalsWithoutNBT(item)) {
found = true;
break;
}
}
if(!found) {
wanteditem = item;
}
} else {
boolean found = false;
for(int i=0;i<filter.getSizeInventory() && i < filterInvLimit;i++) {
ItemIdentifierStack identStack = filter.getIDStackInSlot(i);
if(identStack == null) continue;
if(identStack.getItem().equalsWithoutNBT(item)) {
found = true;
break;
}
}
if(found) {