getHeldItem

abstract fun getHeldItem(hand: Hand): ItemStack

Gets the item the player is holding in the given hand.

Return

the item

Parameters

hand

the hand