Equipable

interface Equipable

Something that can be equipped with hand and armour items.

Inheritors

Functions

Link copied to clipboard
abstract fun getArmor(slot: ArmorSlot): ItemStack

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

Link copied to clipboard
abstract fun getEquipment(slot: EquipmentSlot): ItemStack

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

Link copied to clipboard
abstract fun getHeldItem(hand: Hand): ItemStack

Gets the item that this equipable holds in the given hand.

Link copied to clipboard
abstract fun setArmor(slot: ArmorSlot, item: ItemStack)

Sets the armour item that this mob has equipped in the given slot to the given item.

Link copied to clipboard
abstract fun setEquipment(slot: EquipmentSlot, item: ItemStack)

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

Link copied to clipboard
abstract fun setHeldItem(hand: Hand, item: ItemStack)

Sets the item that this mob holds in the given hand to the given item.