setCursor

public final void setCursor(ItemStack item)

Sets the item on the cursor of one of the viewing players.

Parameters

item

The item to put on the cursor, or null to remove the item on their cursor.