def METHOD_NAME(self, x, y, z):
    self.block_undo.append((x, y, z))
    if len(self.block_undo) > zoc_block_undo.get():
        self.block_undo.popleft()
    return connection.METHOD_NAME(self, x, y, z)