001    package org.bukkit.event.inventory;
002    
003    /**
004     * An estimation of what the result will be.
005     */
006    public enum InventoryAction {
007    
008        /**
009         * Nothing will happen from the click.
010         * <p>
011         * There may be cases where nothing will happen and this is value is not
012         * provided, but it is guaranteed that this value is accurate when given.
013         */
014        NOTHING,
015        /**
016         * All of the items on the clicked slot are moved to the cursor.
017         */
018        PICKUP_ALL,
019        /**
020         * Some of the items on the clicked slot are moved to the cursor.
021         */
022        PICKUP_SOME,
023        /**
024         * Half of the items on the clicked slot are moved to the cursor.
025         */
026        PICKUP_HALF,
027        /**
028         * One of the items on the clicked slot are moved to the cursor.
029         */
030        PICKUP_ONE,
031        /**
032         * All of the items on the cursor are moved to the clicked slot.
033         */
034        PLACE_ALL,
035        /**
036         * Some of the items from the cursor are moved to the clicked slot
037         * (usually up to the max stack size).
038         */
039        PLACE_SOME,
040        /**
041         * A single item from the cursor is moved to the clicked slot.
042         */
043        PLACE_ONE,
044        /**
045         * The clicked item and the cursor are exchanged.
046         */
047        SWAP_WITH_CURSOR,
048        /**
049         * The entire cursor item is dropped.
050         */
051        DROP_ALL_CURSOR,
052        /**
053         * One item is dropped from the cursor.
054         */
055        DROP_ONE_CURSOR,
056        /**
057         * The entire clicked slot is dropped.
058         */
059        DROP_ALL_SLOT,
060        /**
061         * One item is dropped from the clicked slot.
062         */
063        DROP_ONE_SLOT,
064        /**
065         * The item is moved to the opposite inventory if a space is found.
066         */
067        MOVE_TO_OTHER_INVENTORY,
068        /**
069         * The clicked item is moved to the hotbar, and the item currently there
070         * is re-added to the player's inventory.
071         */
072        HOTBAR_MOVE_AND_READD,
073        /**
074         * The clicked slot and the picked hotbar slot are swapped.
075         */
076        HOTBAR_SWAP,
077        /**
078         * A max-size stack of the clicked item is put on the cursor.
079         */
080        CLONE_STACK,
081        /**
082         * The inventory is searched for the same material, and they are put on
083         * the cursor up to {@link org.bukkit.Material#getMaxStackSize()}.
084         */
085        COLLECT_TO_CURSOR,
086        /**
087         * An unrecognized ClickType.
088         */
089        UNKNOWN,
090        ;
091    }