public enum InventoryAction extends Enum<InventoryAction>
| Enum Constant and Description | 
|---|
| CLONE_STACKA max-size stack of the clicked item is put on the cursor. | 
| COLLECT_TO_CURSORThe inventory is searched for the same material, and they are put on
 the cursor up to  Material.getMaxStackSize(). | 
| DROP_ALL_CURSORThe entire cursor item is dropped. | 
| DROP_ALL_SLOTThe entire clicked slot is dropped. | 
| DROP_ONE_CURSOROne item is dropped from the cursor. | 
| DROP_ONE_SLOTOne item is dropped from the clicked slot. | 
| HOTBAR_MOVE_AND_READDThe clicked item is moved to the hotbar, and the item currently there
 is re-added to the player's inventory. | 
| HOTBAR_SWAPThe clicked slot and the picked hotbar slot are swapped. | 
| MOVE_TO_OTHER_INVENTORYThe item is moved to the opposite inventory if a space is found. | 
| NOTHINGNothing will happen from the click. | 
| PICKUP_ALLAll of the items on the clicked slot are moved to the cursor. | 
| PICKUP_HALFHalf of the items on the clicked slot are moved to the cursor. | 
| PICKUP_ONEOne of the items on the clicked slot are moved to the cursor. | 
| PICKUP_SOMESome of the items on the clicked slot are moved to the cursor. | 
| PLACE_ALLAll of the items on the cursor are moved to the clicked slot. | 
| PLACE_ONEA single item from the cursor is moved to the clicked slot. | 
| PLACE_SOMESome of the items from the cursor are moved to the clicked slot
 (usually up to the max stack size). | 
| SWAP_WITH_CURSORThe clicked item and the cursor are exchanged. | 
| UNKNOWNAn unrecognized ClickType. | 
| Modifier and Type | Method and Description | 
|---|---|
| static InventoryAction | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static InventoryAction[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final InventoryAction NOTHING
There may be cases where nothing will happen and this is value is not provided, but it is guaranteed that this value is accurate when given.
public static final InventoryAction PICKUP_ALL
public static final InventoryAction PICKUP_SOME
public static final InventoryAction PICKUP_HALF
public static final InventoryAction PICKUP_ONE
public static final InventoryAction PLACE_ALL
public static final InventoryAction PLACE_SOME
public static final InventoryAction PLACE_ONE
public static final InventoryAction SWAP_WITH_CURSOR
public static final InventoryAction DROP_ALL_CURSOR
public static final InventoryAction DROP_ONE_CURSOR
public static final InventoryAction DROP_ALL_SLOT
public static final InventoryAction DROP_ONE_SLOT
public static final InventoryAction MOVE_TO_OTHER_INVENTORY
public static final InventoryAction HOTBAR_MOVE_AND_READD
public static final InventoryAction HOTBAR_SWAP
public static final InventoryAction CLONE_STACK
public static final InventoryAction COLLECT_TO_CURSOR
Material.getMaxStackSize().public static final InventoryAction UNKNOWN
public static InventoryAction[] values()
for (InventoryAction c : InventoryAction.values()) System.out.println(c);
public static InventoryAction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015. All rights reserved.