list

inline fun list(build: NbtListBuilder.() -> Unit)


inline fun <T> list(value: Iterable<T>)

Adds 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.