set Cursor
Sets the item on the cursor.
Deprecated
This changes the ItemStack in their hand before any calculations are applied to the Inventory, which has getClassById tendency to create inconsistencies between the Player and the server, and to make unexpected changes in the behavior of the clicked Inventory.
Parameters
stack
the new cursor item