Пример #1
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);
            }
        }
Пример #2
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);
            }
        }
Пример #3
0
 /// <exception cref="System.IO.IOException"/>
 internal override void ReadTagContents(java.io.DataInput datainput)
 {
     byteValue = datainput.ReadByte();
 }