Example #1
0
 internal override void Write(NBTStream stream)
 {
     foreach (Tag t in this.Tags.Values)
     {
         t.WriteTag(stream);
     }
     stream.WriteByteTag((byte)NBTTagType.END);
 }
Example #2
0
 internal override void Write(NBTStream stream)
 {
     stream.WriteByteTag((byte)this.ListTagType);
     stream.WriteIntTag(this.Tags.Count);
     for (int i = 0; i < this.Tags.Count; ++i)
     {
         this.Tags[i].Write(stream);
     }
 }
Example #3
0
        internal override void Write(NBTStream stream)
        {
            int len = this.Data.Length;

            stream.WriteIntTag(len);
            for (int i = 0; i < len; ++i)
            {
                stream.WriteByteTag(this.Data[i]);
            }
        }
Example #4
0
 internal override void Write(NBTStream stream)
 {
     stream.WriteByteTag(this.Data);
 }
Example #5
0
 internal void WriteTag(NBTStream stream)
 {
     stream.WriteByteTag((byte)this.Type);
     stream.WriteStringTag(this.Name);
     this.Write(stream);
 }