(self)
return slots
List of all available inventory slots in the preferred search order.
        Does not include the additional slots from the open window.

        1. active slot
        2. remainder of the hotbar
        3. remainder of the persistent inventory
List of all available inventory slots in the preferred search order.
        Does not include the additional slots from the open window.
List of all available inventory slots in the preferred search order . Does not include the additional slots from the open window .
def inv_slots_preferred(self):
        """
        List of all available inventory slots in the preferred search order.
        Does not include the additional slots from the open window.

        1. active slot
        2. remainder of the hotbar
        3. remainder of the persistent inventory
        """
        slots = [self.active_slot]
        slots.extend(slot for slot in self.window.hotbar_slots
                     if slot != self.active_slot)
        slots.extend(self.window.inventory_slots)
        return slots
def inv_slots_preferred ( self ) : slots = [ self . active_slot ] slots . extend ( slot for slot in self . window . hotbar_slots if slot != self . active_slot ) slots . extend ( self . window . inventory_slots ) return slots