Package org.bukkit.event.inventory
Enum Class InventoryType.SlotType
- All Implemented Interfaces:
Serializable
,Comparable<InventoryType.SlotType>
,Constable
- Enclosing class:
InventoryType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn armour slot in the player's inventory.A regular slot in the container or the player's inventory; anything not covered by the other enum values.A slot in the crafting matrix, or an 'input' slot.The fuel slot in a furnace inventory, or the ingredient slot in a brewing stand inventory.A pseudo-slot representing the area outside the inventory window.A slot in the bottom row or quickbar.A result slot in a furnace or crafting inventory. -
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryType.SlotType
Returns the enum constant of this class with the specified name.static InventoryType.SlotType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESULT
A result slot in a furnace or crafting inventory. -
CRAFTING
A slot in the crafting matrix, or an 'input' slot. -
ARMOR
An armour slot in the player's inventory. -
CONTAINER
A regular slot in the container or the player's inventory; anything not covered by the other enum values. -
QUICKBAR
A slot in the bottom row or quickbar. -
OUTSIDE
A pseudo-slot representing the area outside the inventory window. -
FUEL
The fuel slot in a furnace inventory, or the ingredient slot in a brewing stand inventory.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-