Package com.codeski.nbt
Class NBTWriter
- java.lang.Object
-
- com.codeski.nbt.NBTWriter
-
public class NBTWriter extends java.lang.ObjectClass for writing NBT structures as NBT, JSON, or XML.
-
-
Constructor Summary
Constructors Constructor Description NBTWriter(java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteJSON(NBT<?> root)Writes the tag specified and its children as JSON text.voidwriteNBT(NBT<?> root)Writes the tag specified and its children as NBT binary data.voidwriteNBT(NBT<?> root, boolean compressed)voidwriteXML(NBT<?> root)Writes the tag specified and its children as XML text.
-
-
-
Method Detail
-
writeJSON
public void writeJSON(NBT<?> root)
Writes the tag specified and its children as JSON text.
-
writeNBT
public void writeNBT(NBT<?> root)
Writes the tag specified and its children as NBT binary data.
-
writeNBT
public void writeNBT(NBT<?> root, boolean compressed)
-
writeXML
public void writeXML(NBT<?> root)
Writes the tag specified and its children as XML text.
-
-