Class SNBT

java.lang.Object
com.viaversion.nbt.stringified.SNBT

public final class SNBT extends Object
Serialization of stringifies tags.
  • Method Details

    • deserialize

      public static Tag deserialize(String snbt)
      Reads a compound tag from a String.
      Parameters:
      snbt - SNBT input
      Returns:
      compound tag from the given SNBT input
      Throws:
      StringifiedTagParseException - if an exception was encountered while reading a compound tag
    • deserializeCompoundTag

      public static CompoundTag deserializeCompoundTag(String snbt)
    • serialize

      public static String serialize(Tag tag)
      Serializes a tag to SNBT.
      Parameters:
      tag - the compound tag
      Returns:
      serialized SNBT
      Throws:
      IllegalArgumentException - if an unknown tag is provided