예제 #1
0
        /// <exception cref="System.IO.IOException"/>
        internal override void ReadTagContents(java.io.DataInput datainput)
        {
            int i = datainput.ReadInt();

            byteArray = new byte[i];
            datainput.ReadFully(byteArray);
        }
예제 #2
0
 /// <exception cref="System.IO.IOException"/>
 internal override void ReadTagContents(java.io.DataInput datainput)
 {
     tagMap.Clear();
     net.minecraft.src.NBTBase nbtbase;
     for (; (nbtbase = net.minecraft.src.NBTBase.ReadTag(datainput)).GetType() != 0; tagMap
          [nbtbase.GetKey()] = nbtbase)
     {
     }
 }
 /// <exception cref="System.IO.IOException"/>
 public static net.minecraft.src.NBTTagCompound GetCompound(java.io.DataInput datainput)
 {
     net.minecraft.src.NBTBase nbtbase = net.minecraft.src.NBTBase.ReadTag(datainput);
     if (nbtbase is net.minecraft.src.NBTTagCompound)
     {
         return((net.minecraft.src.NBTTagCompound)nbtbase);
     }
     else
     {
         throw new System.IO.IOException("Root tag must be a named compound tag");
     }
 }
예제 #4
0
        /// <exception cref="System.IO.IOException"/>
        internal override void ReadTagContents(java.io.DataInput datainput)
        {
            tagType = datainput.ReadByte();
            int i = datainput.ReadInt();

            tagList = new List <NBTBase>();
            for (int j = 0; j < i; j++)
            {
                net.minecraft.src.NBTBase nbtbase = net.minecraft.src.NBTBase.CreateTagOfType(tagType
                                                                                              );
                nbtbase.ReadTagContents(datainput);
                tagList.Add(nbtbase);
            }
        }
예제 #5
0
        /// <exception cref="System.IO.IOException"/>
        public static net.minecraft.src.NBTBase ReadTag(java.io.DataInput datainput)
        {
            byte byte0 = datainput.ReadByte();

            if (byte0 == 0)
            {
                return(new net.minecraft.src.NBTTagEnd());
            }
            else
            {
                net.minecraft.src.NBTBase nbtbase = CreateTagOfType(byte0);
                nbtbase.key = datainput.ReadUTF();
                nbtbase.ReadTagContents(datainput);
                return(nbtbase);
            }
        }
예제 #6
0
 /// <exception cref="System.IO.IOException"/>
 internal override void ReadTagContents(java.io.DataInput datainput)
 {
     byteValue = datainput.ReadByte();
 }
예제 #7
0
 public static string readUTF(java.io.DataInput @in)
 {
     throw new System.NotImplementedException();
 }
예제 #8
0
 /// <exception cref="System.IO.IOException"/>
 internal override void ReadTagContents(java.io.DataInput datainput)
 {
     intValue = datainput.ReadInt();
 }
예제 #9
0
 /// <exception cref="System.IO.IOException"/>
 internal override void ReadTagContents(java.io.DataInput datainput)
 {
     longValue = datainput.ReadLong();
 }
예제 #10
0
 /// <exception cref="System.IO.IOException"/>
 internal abstract void ReadTagContents(java.io.DataInput datainput);
예제 #11
0
 // Referenced classes of package net.minecraft.src:
 //            NBTBase
 /// <exception cref="System.IO.IOException"/>
 internal override void ReadTagContents(java.io.DataInput datainput)
 {
 }
예제 #12
0
 /// <exception cref="System.IO.IOException"/>
 internal override void ReadTagContents(java.io.DataInput datainput)
 {
     stringValue = datainput.ReadUTF();
 }
예제 #13
0
 /// <exception cref="System.IO.IOException"/>
 internal override void ReadTagContents(java.io.DataInput datainput)
 {
     doubleValue = datainput.ReadDouble();
 }