spockbot.plugins.tools.inventory_async module¶
Asynchronous task wrappers for inventory
-
class
spockbot.plugins.tools.inventory_async.InventoryAsync(inventory)¶ Bases:
object-
click_slot(slot, right=False)¶
-
click_slots(*slots)¶
-
creative_set_slot(slot_nr=None, slot_dict=None, slot=None)¶
-
drop_slot(slot=None, drop_stack=False)¶
-
hold_item(wanted)¶
-
move_to_inventory(*slots)¶
-
move_to_window(*slots)¶
-
store_or_drop()¶ Stores the cursor item or drops it if the inventory is full. Tip: look directly up or down before calling this, so you can pick up the dropped item when the inventory frees up again.
Returns: The slot used to store it, or None if dropped. Return type: Slot
-
swap_slots(a, b)¶
-
transfer_slots(source_slots, target_slots)¶
-
-
spockbot.plugins.tools.inventory_async.unpack_slots_list(slots)¶