Module syntaxnbt

Class NBTDeserializer

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

public class NBTDeserializer extends Object
A utility class for deserializing NBT tags
Author:
SyntaxError404
  • Constructor Details

    • NBTDeserializer

      public NBTDeserializer()
  • Method Details

    • deserialize

      public static TagCompound deserialize(TagCompound tag, DataInputStream input) throws IOException
      Reads and populates a compound tag from a stream (NBT format)
      Parameters:
      tag - destination tag
      input - stream to read to
      Returns:
      the deserialized tag
      Throws:
      IOException - if an I/O error occured