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

getNullableLongArray

[jvm]
fun getNullableLongArray(key: String): LongArray?

Returns the unwrapped long array value. The array will be linked and any modification will also change wrapper and 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 NbtLongArray