writeToStreamCompressed static method
- CompoundTag tag
Writes the NBT Data to stream in compressed mode
Implementation
static Future<Uint8List> writeToStreamCompressed(CompoundTag tag) async {
_io = ByteLayer();
Tag.writeNamedTag(tag, _io);
_io.compress();
return _io.bytes;
}