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/NbtCompound/getNullableString

getNullableString

[jvm]
fun getNullableString(key: String): String?

Returns the unwrapped string value or null if no value is mapped, or it is mapped to another type tag.

Throws

   
kotlin.ClassCastException If the NbtTag is not a NbtString