Package org.bukkit.event.inventory
Enum InventoryType.SlotType
- java.lang.Object
-
- java.lang.Enum<InventoryType.SlotType>
-
- org.bukkit.event.inventory.InventoryType.SlotType
-
- All Implemented Interfaces:
Serializable,Comparable<InventoryType.SlotType>
- Enclosing class:
- InventoryType
public static enum InventoryType.SlotType extends Enum<InventoryType.SlotType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARMORAn armour slot in the player's inventory.CONTAINERA regular slot in the container or the player's inventory; anything not covered by the other enum values.CRAFTINGA slot in the crafting matrix, or an 'input' slot.FUELThe fuel slot in a furnace inventory, or the ingredient slot in a brewing stand inventory.OUTSIDEA pseudo-slot representing the area outside the inventory window.QUICKBARA slot in the bottom row or quickbar.RESULTA result slot in a furnace or crafting inventory.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InventoryType.SlotTypevalueOf(String name)Returns the enum constant of this type with the specified name.static InventoryType.SlotType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESULT
public static final InventoryType.SlotType RESULT
A result slot in a furnace or crafting inventory.
-
CRAFTING
public static final InventoryType.SlotType CRAFTING
A slot in the crafting matrix, or an 'input' slot.
-
ARMOR
public static final InventoryType.SlotType ARMOR
An armour slot in the player's inventory.
-
CONTAINER
public static final InventoryType.SlotType CONTAINER
A regular slot in the container or the player's inventory; anything not covered by the other enum values.
-
QUICKBAR
public static final InventoryType.SlotType QUICKBAR
A slot in the bottom row or quickbar.
-
OUTSIDE
public static final InventoryType.SlotType OUTSIDE
A pseudo-slot representing the area outside the inventory window.
-
FUEL
public static final InventoryType.SlotType FUEL
The fuel slot in a furnace inventory, or the ingredient slot in a brewing stand inventory.
-
-
Method Detail
-
values
public static InventoryType.SlotType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InventoryType.SlotType c : InventoryType.SlotType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InventoryType.SlotType 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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-