getSlot

fun getSlot(itemStack: ItemStack): EquipmentSlot?

Gets the BukkitEquipmentSlot of the specified itemStack, or null if it is not wearable.


fun getSlot(itemStack: ItemStack): EquipmentSlot?

Gets the MojangEquipmentSlot of the specified itemStack, or null if it is not wearable.