Class SNBTSerializer
java.lang.Object
de.pauleff.formats.snbt.SNBTSerializer
Serializer for converting NBT tags into SNBT (Stringified NBT) format.
Produces valid SNBT strings that can be used in Minecraft commands and debugging.
Uses Minecraft-compatible formatting by default.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SNBTSerializer
public SNBTSerializer()Creates a serializer with Minecraft-compatible formatting.
-
-
Method Details
-
serialize
-
writeToFile
Writes an NBT tag to a text file in SNBT format.- Parameters:
tag- the NBT tag to serializefile- the file to write to- Throws:
IOException- if writing fails
-