(self, wanted, slots=None)
return None
Searches the given slots or, if not given,
        active hotbar slot, hotbar, inventory, open window in this order.

        Args:
            wanted: function(Slot) or Slot or itemID or (itemID, metadata)

        Returns:
            Optional[Slot]: The first slot containing the item
                            or None if not found.
Searches the given slots or, if not given,
        active hotbar slot, hotbar, inventory, open window in this order.
Searches the given slots or if not given active hotbar slot hotbar inventory open window in this order .
def find_slot(self, wanted, slots=None):
        """
        Searches the given slots or, if not given,
        active hotbar slot, hotbar, inventory, open window in this order.

        Args:
            wanted: function(Slot) or Slot or itemID or (itemID, metadata)

        Returns:
            Optional[Slot]: The first slot containing the item
                            or None if not found.
        """
        for slot in self.find_slots(wanted, slots):
            return slot
        return None
def find_slot ( self , wanted , slots = None ) : for slot in self . find_slots ( wanted , slots ) : return slot return None