for (AdjacentTile tile : wUtil.getAdjacentTileEntities(true)){
if (!(tile.tile instanceof IInventory)) continue;
if (SimpleServiceLocator.pipeInformaitonManager.isPipe(tile.tile)) continue;
IInventoryUtil inv = getAdaptedInventoryUtil(tile);
int available = inv.itemCount(item);
if (available == 0) continue;
int wanted = Math.min(available, stack.getStackSize());
wanted = Math.min(wanted, maxCount);
wanted = Math.min(wanted, item.getMaxStackSize());