public static TagBase ReadNamedTag(NBTBinaryReader br) { byte type = br.ReadByte(); if (type == 0) { return(new TagEnd()); } else { string n = br.ReadString(); TagBase nbt = CreateNewTag((TagType)type, n); nbt.ReadBinary(br); return(nbt); } }
internal override void ReadBinary(NBTBinaryReader br) { _value = br.ReadString(); }