Class MCAWriter


  • public class MCAWriter
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void writeJSON​(MCARegion region, java.io.File file)
      Writes the tag specified and its children as JSON text.
      static void writeMCA​(MCARegion region, java.io.File file)
      Writes the tag specified and its children as NBT binary data.
      static void writeMCA​(MCARegion region, java.io.File file, boolean compressed)
      Writes the tag specified and its children as NBT binary data.
      static void writeXML​(MCARegion region, java.io.File file)
      Writes the tag specified and its children as XML text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • writeJSON

        public static void writeJSON​(MCARegion region,
                                     java.io.File file)
                              throws java.io.FileNotFoundException
        Writes the tag specified and its children as JSON text.
        Parameters:
        region - The root tag to write.
        file - The file to write to.
        Throws:
        java.io.FileNotFoundException - If the file being written to does not exist.
      • writeMCA

        public static void writeMCA​(MCARegion region,
                                    java.io.File file)
                             throws java.io.FileNotFoundException
        Writes the tag specified and its children as NBT binary data.
        Parameters:
        region - The root tag to write.
        file - The file to write to.
        Throws:
        java.io.FileNotFoundException - If the file being written to does not exist.
      • writeMCA

        public static void writeMCA​(MCARegion region,
                                    java.io.File file,
                                    boolean compressed)
                             throws java.io.FileNotFoundException
        Writes the tag specified and its children as NBT binary data.
        Parameters:
        region - The root tag to write.
        file - The file to write to.
        compressed - Whether or not the file should be compressed.
        Throws:
        java.io.FileNotFoundException - If the file being written to does not exist.
      • writeXML

        public static void writeXML​(MCARegion region,
                                    java.io.File file)
                             throws java.io.FileNotFoundException
        Writes the tag specified and its children as XML text.
        Parameters:
        region - The root tag to write.
        file - The file to write to.
        Throws:
        java.io.FileNotFoundException - If the file being written to does not exist.