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

getNullableBooleanByte

[jvm]
fun getNullableBooleanByte(key: String): Boolean

Returns true if getByte returns 1, false otherwise. Will also return false if the value is not mapped.

Throws

   
kotlin.ClassCastException If the NbtTag is not a NbtByte