Package com.viaversion.nbt.stringified
Class SNBT
java.lang.Object
com.viaversion.nbt.stringified.SNBT
Serialization of stringifies tags.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Tagdeserialize(String snbt) Reads a compound tag from aString.static CompoundTagdeserializeCompoundTag(String snbt) static StringSerializes a tag to SNBT.
-
Method Details
-
deserialize
Reads a compound tag from aString.- 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
-
serialize
Serializes a tag to SNBT.- Parameters:
tag- the compound tag- Returns:
- serialized SNBT
- Throws:
IllegalArgumentException- if an unknown tag is provided
-