MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / get

Method get

pokemongo_bot/inventory.py:272–279  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 15

init_configFunction · 0.45
add_configFunction · 0.45
browserMqtt.jsFile · 0.45
getMethod · 0.45
parseMethod · 0.45
capturedMethod · 0.45
shiny_seenMethod · 0.45
shiny_capturedMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

ItemClass · 0.70

Tested by 4

setUpMethod · 0.36
setUpMethod · 0.36
test_task_with_configMethod · 0.36