if (stack != null) {
stored += stack.stackSize;
addStackToList(list, inv.getStackInSlot(i));
}
}
<BUG>return new StorageSize(stored, inv.getInventoryStackLimit() * inv.getSizeInventory());

}</BUG>
public StorageSize addItemHandlerToList(List<StoredItemStack> list, IItemHandler inv) {
long stored = 0;

if (stack != null) {
stored += stack.stackSize;
addStackToList(list, inv.getStackInSlot(i));
}
}
int max = inv.getInventoryStackLimit() * inv.getSizeInventory();
return new StorageSize(stored, max);
}
public StorageSize addItemHandlerToList(List<StoredItemStack> list, IItemHandler inv) {
long stored = 0;
