Companion

object Companion

Functions

Link copied to clipboard
fun getSlot(itemStack: ItemStack): EquipmentSlot?

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

fun getSlot(itemStack: ItemStack): EquipmentSlot?

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

Link copied to clipboard
fun isWearable(itemStack: ItemStack): Boolean
fun isWearable(itemStack: ItemStack): Boolean

Checks whether the specified itemStack is wearable.