def find_slots(self, wanted, slots=None):
        if slots is None:
            slots = self.inv_slots_preferred + self.window.window_slots
        wanted = make_slot_check(wanted)

        for slot in slots:
            if wanted(slot):
                yield slot
Yields all slots containing the item.
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/helpers/inventory.py/InventoryCore.find_slots