Package org.rspeer.game.event
Enum InventoryEvent.Type
- java.lang.Object
-
- java.lang.Enum<InventoryEvent.Type>
-
- org.rspeer.game.event.InventoryEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<InventoryEvent.Type>
- Enclosing class:
- InventoryEvent
public static enum InventoryEvent.Type extends Enum<InventoryEvent.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
REMOVE
STACK_DECREASE
STACK_INCREASE
UPDATE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InventoryEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static InventoryEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final InventoryEvent.Type ADD
-
REMOVE
public static final InventoryEvent.Type REMOVE
-
UPDATE
public static final InventoryEvent.Type UPDATE
-
STACK_INCREASE
public static final InventoryEvent.Type STACK_INCREASE
-
STACK_DECREASE
public static final InventoryEvent.Type STACK_DECREASE
-
-
Method Detail
-
values
public static InventoryEvent.Type[] 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 (InventoryEvent.Type c : InventoryEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InventoryEvent.Type 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
-
-