getItemOnCursor

public abstract ItemStack getItemOnCursor()

Returns the ItemStack currently on your cursor, can be empty. Will always be empty if the player currently has no open window.

Return

The ItemStack of the item you are currently moving around.