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 SummaryEnum Constants Enum Constant Description BACKPACKBANKDOM_LOOTEQUIPMENTLOOTING_BAGSHOPTRADE_INCOMINGTRADE_OUTGOING
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Inventory.FormatgetFormat()Consumer<Item>getFunction()longgetKey()List<ComponentQuery>getQueries()static InventoryTypevalueOf(long key)Returns the enum constant of this type with the specified name.static InventoryTypevalueOf(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- 
BACKPACKpublic static final InventoryType BACKPACK 
 - 
BANKpublic static final InventoryType BANK 
 - 
EQUIPMENTpublic static final InventoryType EQUIPMENT 
 - 
TRADE_OUTGOINGpublic static final InventoryType TRADE_OUTGOING 
 - 
TRADE_INCOMINGpublic static final InventoryType TRADE_INCOMING 
 - 
LOOTING_BAGpublic static final InventoryType LOOTING_BAG 
 - 
SHOPpublic static final InventoryType SHOP 
 - 
DOM_LOOTpublic static final InventoryType DOM_LOOT 
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- NullPointerException- if the argument is null
 
 - 
valueOfpublic 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 name
- NullPointerException- if the argument is null
 
 - 
getKeypublic long getKey() 
 - 
getFormatpublic Inventory.Format getFormat() 
 - 
getQueriespublic List<ComponentQuery> getQueries() 
 
- 
 
-