Package com.kovuthehusky.nbt
Class MCAWriter
- java.lang.Object
-
- com.kovuthehusky.nbt.MCAWriter
-
public class MCAWriter extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwriteJSON(MCARegion region, java.io.File file)Writes the tag specified and its children as JSON text.static voidwriteMCA(MCARegion region, java.io.File file)Writes the tag specified and its children as NBT binary data.static voidwriteMCA(MCARegion region, java.io.File file, boolean compressed)Writes the tag specified and its children as NBT binary data.static voidwriteXML(MCARegion region, java.io.File file)Writes the tag specified and its children as XML text.
-
-
-
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.
-
-