/// <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) { TagMap.Clear(); NBTBase nbtbase; if ((nbtbase = NBTBase.ReadNamedTag(par1DataInput)).GetId() != 0) { TagMap[nbtbase.GetName()] = nbtbase; } }
/// <summary> /// Reads from a CompressedStream. /// </summary> public static NBTTagCompound Read(BinaryReader par0DataInput) { NBTBase nbtbase = NBTBase.ReadNamedTag(par0DataInput); if (nbtbase is NBTTagCompound) { return((NBTTagCompound)nbtbase); } else { throw new IOException("Root tag must be a named compound tag"); } }