Package org.bukkit.event.inventory
Enum Class InventoryCloseEvent.Reason
- All Implemented Interfaces:
- Serializable,- Comparable<InventoryCloseEvent.Reason>,- Constable
- Enclosing class:
- InventoryCloseEvent
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionstatic InventoryCloseEvent.ReasonReturns 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- 
UNKNOWNUnknown reason
- 
TELEPORTPlayer is teleporting
- 
CANT_USEPlayer is no longer permitted to use this inventory
- 
UNLOADEDThe chunk the inventory was in was unloaded
- 
OPEN_NEWOpening new inventory instead
- 
PLAYERClosed
- 
DISCONNECTClosed due to disconnect
- 
DEATHThe player died
- 
PLUGINClosed by Bukkit API
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-