setCurrentItem

public void setCurrentItem(ItemStack stack)

Sets the ItemStack currently in the clicked slot.

Parameters

stack

the item to be placed in the current slot