def click_slot(self, slot, right=False):
        if isinstance(slot, int):
            slot = self.window.slots[slot]
        button = constants.INV_BUTTON_RIGHT \
            if right else constants.INV_BUTTON_LEFT
        return self.send_click(windows.SingleClick(slot, button))
Left-click or right-click the slot.
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/helpers/inventory.py/InventoryCore.click_slot