def __repr__(self):
        if self.is_empty:
            s = 'empty'
        else:
            item = self.item
            s = '%i/%i %s' % (self.amount, item.stack_size, str(item))

        if self.slot_nr != -1:
            s += ' at %i' % self.slot_nr
        if self.window:
            s += ' in %s' % self.window
        return '<Slot: %s>' % s
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/mcdata/windows.py/Slot.__repr__/original