public static enum InventoryType.SlotType extends java.lang.Enum<InventoryType.SlotType>
枚举常量和说明 |
---|
ARMOR
在玩家背包里的盔甲槽
|
CONTAINER
A regular slot in the container or the player's inventory; anything
not covered by the other enum values.
|
CRAFTING
A slot in the crafting matrix, or the input slot in a furnace
inventory, the potion slot in the brewing stand, or the enchanting
slot.
|
FUEL
The fuel slot in a furnace inventory, or the ingredient slot in a
brewing stand inventory.
|
OUTSIDE
A pseudo-slot representing the area outside the inventory window.
|
QUICKBAR
A slot in the bottom row or quickbar.
|
RESULT
在熔炉或合成背包里的结果槽
|
限定符和类型 | 方法和说明 |
---|---|
static InventoryType.SlotType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static InventoryType.SlotType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final InventoryType.SlotType RESULT
public static final InventoryType.SlotType CRAFTING
public static final InventoryType.SlotType ARMOR
public static final InventoryType.SlotType CONTAINER
public static final InventoryType.SlotType QUICKBAR
public static final InventoryType.SlotType OUTSIDE
public static final InventoryType.SlotType FUEL
public static InventoryType.SlotType[] values()
for (InventoryType.SlotType c : InventoryType.SlotType.values()) System.out.println(c);
public static InventoryType.SlotType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值