getFloat

open fun getFloat(key: String): Float?

Returns the value associated to the given key, if any. Returns 'null' otherwise. Also returns 'null' if the tag is not of the correct type (eg getByte on a NBTCompound will yield 'null')