Serializable, Comparable<InventoryCloseEvent.Reason>public static enum InventoryCloseEvent.Reason extends Enum<InventoryCloseEvent.Reason>
| Enum Constant | Description | 
|---|---|
| CANT_USE | Player is no longer permitted to use this inventory | 
| DEATH | The player died | 
| DISCONNECT | Closed due to disconnect | 
| OPEN_NEW | Opening new inventory instead | 
| PLAYER | Closed | 
| PLUGIN | Closed by Bukkit API | 
| TELEPORT | Player is teleporting | 
| UNKNOWN | Unknown reason | 
| UNLOADED | The chunk the inventory was in was unloaded | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static InventoryCloseEvent.Reason | valueOf(String name) | Returns the enum constant of this type with the specified name. | 
| static InventoryCloseEvent.Reason[] | values() | Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final InventoryCloseEvent.Reason UNKNOWN
public static final InventoryCloseEvent.Reason TELEPORT
public static final InventoryCloseEvent.Reason CANT_USE
public static final InventoryCloseEvent.Reason UNLOADED
public static final InventoryCloseEvent.Reason OPEN_NEW
public static final InventoryCloseEvent.Reason PLAYER
public static final InventoryCloseEvent.Reason DISCONNECT
public static final InventoryCloseEvent.Reason DEATH
public static final InventoryCloseEvent.Reason PLUGIN
public static InventoryCloseEvent.Reason[] values()
for (InventoryCloseEvent.Reason c : InventoryCloseEvent.Reason.values()) System.out.println(c);
public static InventoryCloseEvent.Reason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020. All rights reserved.