aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/mc/NbtUtil.kt
blob: cc98142001ef5d5df8b6cb1113f59570ad1d55ed (plain)
1
2
3
4
5
6
7
8
9
10
package moe.nea.firmament.util.mc

import net.minecraft.nbt.NbtElement
import net.minecraft.nbt.NbtList

fun Iterable<NbtElement>.toNbtList() = NbtList().also {
	for(element in this) {
		it.add(element)
	}
}