/// <summary> /// Read the actual data contents of the tag, implemented in NBT extension classes /// </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: void load(DataInput par1DataInput) throws IOException public override void Load(BinaryReader par1DataInput) { TagType = par1DataInput.ReadByte(); int i = par1DataInput.ReadInt32(); TagList = new List <NBTBase>(); for (int j = 0; j < i; j++) { NBTBase nbtbase = NBTBase.NewTag(TagType, null); nbtbase.Load(par1DataInput); TagList.Add(nbtbase); } }
/// <summary> /// Reads and returns a tag from the given DataInput, or the End tag if no tag could be read. /// </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public static NBTBase readNamedTag(DataInput par0DataInput) throws IOException public static NBTBase ReadNamedTag(BinaryReader par0DataInput) { byte byte0 = par0DataInput.ReadByte(); if (byte0 == 0) { return(new NBTTagEnd()); } else { string s = par0DataInput.ReadString(); NBTBase nbtbase = NewTag(byte0, s); nbtbase.Load(par0DataInput); return(nbtbase); } }