getList

open fun <T : NBT> getList(key: String): NBTList<T>?

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')