readNewTag static method

NbtTag? readNewTag(
  1. NbtReader fileReader,
  2. NbtTag? parent, {
  3. bool withName = true,
})

Reads the next byte from the file and returns the parsed NbtTag corresponding to the read tag type.

Implementation

static NbtTag? readNewTag(NbtReader fileReader, NbtTag? parent,
    {bool withName = true}) {
  final tagType = fileReader.readByte();
  return readTagForType(fileReader, tagType,
      parent: parent, withName: withName);
}