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

import net.minecraft.entity.EquipmentSlot
import net.minecraft.entity.LivingEntity

val LivingEntity.iterableArmorItems
	get() = EquipmentSlot.entries.asSequence()
		.map { it to getEquippedStack(it) }