public override void ReadStream(Stream s) { listtagtype = NbtReader.TagType(s); Int32 size = NbtReader.TagInt(s); for (int idx = 0; idx < size; idx++) { NbtBase n = createtag(listtagtype); n.ReadStream(s); tagvalue.Add(n); } }
public static NbtBase createtag(Stream s) { NbtType T = NbtReader.TagType(s); if (T == NbtType.TAG_end) { return(new NbtEnd()); } NbtBase n = createtag(T); n.tagname = NbtReader.TagString(s); return(n); }
public override void ReadStream(Stream s) { tagvalue = NbtReader.TagByte(s); }
public override void ReadStream(Stream s) { tagvalue = NbtReader.TagIntArray(s); }