setItemOnCursor

public abstract void setItemOnCursor(ItemStack item)

Sets the item to the given ItemStack, this will replace whatever the user was moving. Will always be empty if the player currently has no open window.

Parameters

item

The ItemStack which will end up in the hand