InventoryAction

public enum InventoryAction

An estimation of what the result will be.

Entries

Link copied to clipboard

Nothing will happen from the click.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

The clicked item and the cursor are exchanged.

Link copied to clipboard

The entire cursor item is dropped.

Link copied to clipboard

One item is dropped from the cursor.

Link copied to clipboard

The entire clicked slot is dropped.

Link copied to clipboard

One item is dropped from the clicked slot.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

The clicked slot and the picked hotbar slot are swapped.

Link copied to clipboard

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

Link copied to clipboard

The inventory is searched for the same material, and they are put on the cursor up to getMaxStackSize.

Link copied to clipboard

An unrecognized ClickType.

Functions

Link copied to clipboard
public static InventoryAction valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<InventoryAction> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.