Package org.rspeer.game.component
Enum InventoryType
- java.lang.Object
-
- java.lang.Enum<InventoryType>
-
- org.rspeer.game.component.InventoryType
-
- All Implemented Interfaces:
Serializable
,Comparable<InventoryType>
public enum InventoryType extends Enum<InventoryType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKPACK
BANK
EQUIPMENT
SHOP
TRADE_INCOMING
TRADE_OUTGOING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Inventory.Format
getFormat()
Consumer<Item>
getFunction()
long
getKey()
List<ComponentQuery>
getQueries()
static InventoryType
valueOf(long key)
Returns the enum constant of this type with the specified name.static InventoryType
valueOf(String name)
Returns the enum constant of this type with the specified name.static InventoryType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BACKPACK
public static final InventoryType BACKPACK
-
BANK
public static final InventoryType BANK
-
EQUIPMENT
public static final InventoryType EQUIPMENT
-
TRADE_OUTGOING
public static final InventoryType TRADE_OUTGOING
-
TRADE_INCOMING
public static final InventoryType TRADE_INCOMING
-
SHOP
public static final InventoryType SHOP
-
-
Method Detail
-
values
public static InventoryType[] 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 (InventoryType c : InventoryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InventoryType 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
-
valueOf
public static InventoryType valueOf(long key)
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:
key
- 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
-
getKey
public long getKey()
-
getFormat
public Inventory.Format getFormat()
-
getQueries
public List<ComponentQuery> getQueries()
-
-