readNamed

fun readNamed(): Pair<String, NBT>

Reads a single named tag from the source. 'first' will hold the name, 'second' the tag

Throws

if an error occurred during reading

if the file does not follow NBT format