NbtWriter constructor

NbtWriter({
  1. NbtCompression nbtCompression = NbtCompression.none,
})

Create a new NbtWriter.

Implementation

NbtWriter({this.nbtCompression = NbtCompression.none}) {
  bytesBuilder = BytesBuilder(copy: true);
  allocate();
}