list

inline fun list(key: String, build: NbtListBuilder.() -> Unit)(source)


inline fun <T> list(key: String, value: Iterable<T>)(source)

Puts an NBT list (not a primitive array) with all elements in value.

Throws

if T not one of Boolean, Byte, Short, Int, Long, Float, Double, Char or String.