Пример #1
0
        public static Chunk LoadFrom(Stream stream)
        {
            using (var wrapper = new StreamWrapper(stream))
                using (var reader = new NbtReader(wrapper))
                {
                    var rootTag = reader.ReadTag().AsCompound();

                    return(new Chunk(rootTag));
                }
        }
Пример #2
0
 public NbtTag ReadNbtTag()
 {
     return(_nbtReader.ReadTag());
 }