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

getLong

[jvm]
fun getLong(key: String): Long

Returns the unwrapped long value.

Throws

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