java.lang.Object
at.syntaxerror.syntaxnbt.internal.SNBTStringifyer
A utility class for stringifying NBT tags
- Author:
- SyntaxError404
-
Method Summary
-
Method Details
-
stringify
Writes a tag to a string (SNBT format). Ifcolored, the string will contain color codes (according to Minecraft's old chat color system using section signsยง)- Parameters:
tag- tag to be stringifyedcolored- whether the string should contain color codes- Returns:
- the stringifyed compound tag
-
quote
Wrap a string in quotes (") and escape special characters, if necessary. If the string only consists of alphanumerical characters, it is returned without further modification.- Parameters:
string- the string to be quoted- Returns:
- the quoted string
-