Module syntaxnbt

Class NBTSerializer

java.lang.Object
at.syntaxerror.syntaxnbt.internal.NBTSerializer

public class NBTSerializer extends Object
A utility class for serializing NBT tags
Author:
SyntaxError404
  • Constructor Details

    • NBTSerializer

      public NBTSerializer()
  • Method Details

    • serialize

      public static void serialize(String name, TagCompound compound, DataOutputStream output) throws IOException
      Writes a compound tag to a stream (NBT format)
      Parameters:
      name - name of the compound tag (optional)
      compound - compound tag to be serialized
      output - stream to write to
      Throws:
      IOException - if an I/O error occured