getHandItem

Returns the itemInHand of the given EquipmentSlot if it is an hand slot.

fun Player.getHandItem(hand: EquipmentSlot?): ItemStack?