Package org.bukkit.event.inventory
Enum Class InventoryCloseEvent.Reason
- All Implemented Interfaces:
Serializable
,Comparable<InventoryCloseEvent.Reason>
,Constable
- Enclosing class:
InventoryCloseEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPlayer is no longer permitted to use this inventoryThe player diedClosed due to disconnectOpening new inventory insteadClosedClosed by Bukkit APIPlayer is teleportingUnknown reasonThe chunk the inventory was in was unloaded -
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryCloseEvent.Reason
Returns the enum constant of this class with the specified name.static InventoryCloseEvent.Reason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown reason -
TELEPORT
Player is teleporting -
CANT_USE
Player is no longer permitted to use this inventory -
UNLOADED
The chunk the inventory was in was unloaded -
OPEN_NEW
Opening new inventory instead -
PLAYER
Closed -
DISCONNECT
Closed due to disconnect -
DEATH
The player died -
PLUGIN
Closed by Bukkit API
-
-
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
-