readNewTag static method
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);
}