Minecraft world importer for Gamecraft.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Program.cs 1003B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Threading.Channels;
  3. using GCMC;
  4. namespace GCMCTest
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. /*var nbtFile = new NbtFile();
  11. nbtFile.LoadFromFile("r.-1.-1.mca", NbtCompression.None, tag =>
  12. {
  13. Console.WriteLine(tag);
  14. return true;
  15. });
  16. Console.WriteLine(nbtFile);*/
  17. /*using (var rf = new RegionFile("r.-1.-1.mca"))
  18. {
  19. Console.WriteLine(rf);
  20. Console.WriteLine(rf.HasChunk(1, 2));
  21. Console.WriteLine(rf.LastModified + " " + rf.SizeDelta);
  22. foreach (var br in rf.GetChunks())
  23. {
  24. var nbt = new NbtFile();
  25. nbt.LoadFromStream(br.BaseStream, NbtCompression.AutoDetect);
  26. Console.WriteLine(nbt);
  27. Console.WriteLine(nbt.RootTag);
  28. }
  29. }*/
  30. }
  31. }
  32. }