forEachTag¶
inline fun forEachTag(listTag: ListTag, action: (NbtTag) -> Unit)
Runs action for each element of listTag, converted to a knbt NbtTag. No-op for an empty/untyped list.
inline fun forEachTag(compoundTag: CompoundTag, action: (Map.Entry<String, NbtTag>) -> Unit)
Runs action for each key/value entry of compoundTag, with the value converted to a knbt NbtTag.