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

getFloat

[jvm]
fun getFloat(key: String): Float

Returns the unwrapped float value.

Throws

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