def get_blocks_byte_array(self, buffer=False):
        if buffer:
            length = len(self.blocksList)
            return BytesIO(pack(">i", length)+self.get_blocks_byte_array())
        else:
            return array.array('B', self.blocksList).tostring()
Return a list of all blocks in this chunk.
dataset/ETHPy150Open twoolie/NBT/nbt/chunk.py/BlockArray.get_blocks_byte_array