isInHand

fun LivingEntity.isInHand(itemStack: ItemStack?, hand: InteractionHand): Boolean