public Item Items(int i) { for (int count = 0; count < inventory.Count; ++count) { if (_inventory[count].id == i) return _inventory[count]; } return null; }