//nbt-manipulator/br.com.gamemods.nbtmanipulator/NbtCompound/getNullableCompoundList
getNullableCompoundList
[jvm]
fun getNullableCompoundList(key: String): NbtList<NbtCompound>?
Returns the NbtList of compounds mapped to that key. The tag and it’s values will be linked and any modification will also change the mapped value.
Will return null if no value is mapped, or it is mapped to another type tag.
Throws
kotlin.ClassCastException | If the NbtTag is not a NbtList |
kotlin.IllegalStateException | If the list is not empty and contains any tag with class different then NbtCompound |