Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.inventory.InventoryAction Enum Reference

Public Attributes

 NOTHING
 
 PICKUP_ALL
 
 PICKUP_SOME
 
 PICKUP_HALF
 
 PICKUP_ONE
 
 PLACE_ALL
 
 PLACE_SOME
 
 PLACE_ONE
 
 SWAP_WITH_CURSOR
 
 DROP_ALL_CURSOR
 
 DROP_ONE_CURSOR
 
 DROP_ALL_SLOT
 
 DROP_ONE_SLOT
 
 MOVE_TO_OTHER_INVENTORY
 
 HOTBAR_MOVE_AND_READD
 
 HOTBAR_SWAP
 
 CLONE_STACK
 
 COLLECT_TO_CURSOR
 
 UNKNOWN
 

Detailed Description

An estimation of what the result will be.

Definition at line 6 of file InventoryAction.java.

Member Data Documentation

org.bukkit.event.inventory.InventoryAction.CLONE_STACK

A max-size stack of the clicked item is put on the cursor.

Definition at line 80 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.COLLECT_TO_CURSOR

The inventory is searched for the same material, and they are put on the cursor up to org.bukkit.Material#getMaxStackSize().

Definition at line 85 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.DROP_ALL_CURSOR

The entire cursor item is dropped.

Definition at line 51 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.DROP_ALL_SLOT

The entire clicked slot is dropped.

Definition at line 59 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.DROP_ONE_CURSOR

One item is dropped from the cursor.

Definition at line 55 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.DROP_ONE_SLOT

One item is dropped from the clicked slot.

Definition at line 63 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.HOTBAR_MOVE_AND_READD

The clicked item is moved to the hotbar, and the item currently there is re-added to the player's inventory.

Definition at line 72 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.HOTBAR_SWAP

The clicked slot and the picked hotbar slot are swapped.

Definition at line 76 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.MOVE_TO_OTHER_INVENTORY

The item is moved to the opposite inventory if a space is found.

Definition at line 67 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.NOTHING

Nothing will happen from the click.

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.

Definition at line 14 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.PICKUP_ALL

All of the items on the clicked slot are moved to the cursor.

Definition at line 18 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.PICKUP_HALF

Half of the items on the clicked slot are moved to the cursor.

Definition at line 26 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.PICKUP_ONE

One of the items on the clicked slot are moved to the cursor.

Definition at line 30 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.PICKUP_SOME

Some of the items on the clicked slot are moved to the cursor.

Definition at line 22 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.PLACE_ALL

All of the items on the cursor are moved to the clicked slot.

Definition at line 34 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.PLACE_ONE

A single item from the cursor is moved to the clicked slot.

Definition at line 43 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.PLACE_SOME

Some of the items from the cursor are moved to the clicked slot (usually up to the max stack size).

Definition at line 39 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.SWAP_WITH_CURSOR

The clicked item and the cursor are exchanged.

Definition at line 47 of file InventoryAction.java.

org.bukkit.event.inventory.InventoryAction.UNKNOWN

An unrecognized ClickType.

Definition at line 89 of file InventoryAction.java.


The documentation for this enum was generated from the following file: