getEquipment

abstract fun getEquipment(slot: EquipmentSlot): ItemStack

Gets the equipment item that this mob has equipped in the given slot.

This may return ItemStack.empty if this mob does not have any armour equipped in the given slot.

Return

the item in the given slot

Parameters

slot

the slot