Get ONE Item from the cached inventory. :param item_id: Item's ID to search for. :return: Instance of the item from the cached inventory :rtype: Item
(self, item_id)
| 270 | return list(self._data.values()) |
| 271 | |
| 272 | def get(self, item_id): |
| 273 | """ |
| 274 | Get ONE Item from the cached inventory. |
| 275 | :param item_id: Item's ID to search for. |
| 276 | :return: Instance of the item from the cached inventory |
| 277 | :rtype: Item |
| 278 | """ |
| 279 | return self._data.setdefault(item_id, Item(item_id, 0)) |
| 280 | |
| 281 | @classmethod |
| 282 | def name_for(cls, item_id): |