public enum InventoryAction extends java.lang.Enum<InventoryAction>
枚举常量和说明 |
---|
CLONE_STACK
将所单击的物品按最大堆叠数量复制到光标上.
|
COLLECT_TO_CURSOR
在物品栏中寻找完全相同的物品,并添加到光标上,直到达到
物品的最大堆叠数量 . |
DROP_ALL_CURSOR
丢弃光标上的物品(所有).
|
DROP_ALL_SLOT
丢弃所单击的格子中的物品(所有).
|
DROP_ONE_CURSOR
丢弃光标上的物品(一个).
|
DROP_ONE_SLOT
丢弃所单击的格子中的物品(一个).
|
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.
|
HOTBAR_SWAP
The clicked slot and the picked hotbar slot are swapped.
|
MOVE_TO_OTHER_INVENTORY
将所单击的格子中的物品移动到对面的物品栏中去(如果有空位).
|
NOTHING
这一次点击什么都不会发生.
|
PICKUP_ALL
所单击的格子的物品(所有)被移到光标上.
|
PICKUP_HALF
所单击的格子的物品(一半)被移到光标上.
|
PICKUP_ONE
所单击的格子的物品(一个)被移到光标上.
|
PICKUP_SOME
所单击的格子的物品(部分)被移到光标上.
|
PLACE_ALL
光标上的物品(所有)被移到所单击的格子中.
|
PLACE_ONE
光标上的物品(一个)被移到所单击的格子中.
|
PLACE_SOME
光标上的物品(部分)被移到所单击的格子中(通常会提高到该物品的最大堆叠数量).
|
SWAP_WITH_CURSOR
光标上的物品与所单击的格子中的物品相互交换.
|
UNKNOWN
无法识别的
点击类型 . |
限定符和类型 | 方法和说明 |
---|---|
static InventoryAction |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static InventoryAction[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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
物品的最大堆叠数量
.public static final InventoryAction UNKNOWN
点击类型
.public static InventoryAction[] values()
for (InventoryAction c : InventoryAction.values()) System.out.println(c);
public static InventoryAction valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值