NBT-Manipulator

A kotlin/java lib that allows you to read and write NBT data in a clean way

View on GitHub

//nbt-manipulator/br.com.gamemods.nbtmanipulator/NbtTag/stringValue

stringValue

[jvm]
abstract val stringValue: String

Returns a string representation of the tag’s value.

The NbtList and the array types will have an output similar to a normal List and NbtCompound to a normal Map.

The class names of the NbtList’s and NbtCompound’s children will expose.

The returned string is compatible with string constructors of the same type.

Be aware that this may be a slow operation on big lists, arrays or compounds.