Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public override void ReadStream(Stream s)
 {
     tagvalue = NbtReader.TagByte(s);
 }
Beispiel #4
0
 public override void ReadStream(Stream s)
 {
     tagvalue = NbtReader.TagIntArray(s);
 }