list

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


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

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.