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 1015B

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