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

require

[jvm]
fun require(key: String): NbtTag

Returns the value corresponding to the given key, or throw an exception if such a key is not present in the compound.

Throws

   
kotlin.NoSuchElementException If the key is not present on the compound