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

Method name_for

pokemongo_bot/inventory.py:282–289  ·  view source on GitHub ↗

Search the name for an item from its ID. :param item_id: Item's ID to search for. :return: Item's name. :rtype: str

(cls, item_id)

Source from the content-addressed store, hash-verified

280
281 @classmethod
282 def name_for(cls, item_id):
283 """
284 Search the name for an item from its ID.
285 :param item_id: Item's ID to search for.
286 :return: Item's name.
287 :rtype: str
288 """
289 return cls.STATIC_DATA[str(item_id)]
290
291 @classmethod
292 def get_space_used(cls):

Callers 15

__init__Method · 0.45
__init__Method · 0.45
parseMethod · 0.45
__init__Method · 0.45
uniq_caughtMethod · 0.45
get_nearby_pokemonsMethod · 0.45
_is_family_of_vipMethod · 0.45
workMethod · 0.45
get_family_namesMethod · 0.45
get_evolution_planMethod · 0.45
fetchMethod · 0.45
_parse_pokemonsMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_pokemonsMethod · 0.36