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/getIntArray

getIntArray

[jvm]
fun getIntArray(key: String): IntArray

Returns the unwrapped int array value. The array will be linked and any modification will also change wrapper and the mapped value.

Throws

   
kotlin.ClassCastException If the NbtTag is not a NbtIntArray
kotlin.NoSuchElementException If the key is not present on the compound