Beispiel #1
0
 /// <exception cref="System.IO.IOException"/>
 internal override void WriteTagContents(java.io.DataOutput dataoutput)
 {
     net.minecraft.src.NBTBase nbtbase;
     for (System.Collections.IEnumerator iterator = tagMap.Values.GetEnumerator(); iterator
          .MoveNext(); net.minecraft.src.NBTBase.WriteTag(nbtbase, dataoutput))
     {
         nbtbase = (net.minecraft.src.NBTBase)iterator.Current;
     }
     dataoutput.WriteByte(0);
 }
Beispiel #2
0
 /// <exception cref="System.IO.IOException"/>
 public static void WriteTag(net.minecraft.src.NBTBase nbtbase, java.io.DataOutput
                             dataoutput)
 {
     dataoutput.WriteByte(nbtbase.GetType());
     if (nbtbase.GetType() == 0)
     {
         return;
     }
     else
     {
         dataoutput.WriteUTF(nbtbase.GetKey());
         nbtbase.WriteTagContents(dataoutput);
         return;
     }
 }
Beispiel #3
0
 /// <exception cref="System.IO.IOException"/>
 internal override void WriteTagContents(java.io.DataOutput dataoutput)
 {
     if (tagList.Count > 0)
     {
         tagType = ((net.minecraft.src.NBTBase)tagList[0]).GetType();
     }
     else
     {
         tagType = 1;
     }
     dataoutput.WriteByte(tagType);
     dataoutput.WriteInt(tagList.Count);
     for (int i = 0; i < tagList.Count; i++)
     {
         ((net.minecraft.src.NBTBase)tagList[i]).WriteTagContents(dataoutput);
     }
 }
Beispiel #4
0
 /// <exception cref="System.IO.IOException"/>
 internal override void WriteTagContents(java.io.DataOutput dataoutput)
 {
     dataoutput.WriteByte(byteValue);
 }