setHeldItem

abstract fun setHeldItem(hand: Hand, item: ItemStack)

Sets the item the player is holding in the given hand to the given item.

Parameters

hand

the hand

item

the item