Package net.storm.api.items.loadouts
Enum Class LoadoutItem.Type
- All Implemented Interfaces:
Serializable,Comparable<LoadoutItem.Type>,Constable
- Enclosing class:
LoadoutItem
Defines the container type for a loadout item.
This enum specifies where the item should be placed when the loadout is applied.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionItem belongs in the player's equipment.Item belongs in the player's inventory (slots 0-27).Item belongs in the rune pouch. -
Method Summary
Modifier and TypeMethodDescriptionstatic LoadoutItem.TypeReturns the enum constant of this class with the specified name.static LoadoutItem.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVENTORY
Item belongs in the player's inventory (slots 0-27). -
EQUIPMENT
Item belongs in the player's equipment.The slot corresponds to equipment slot indices (e.g., head, cape, amulet, weapon, etc.).
-
RUNE_POUCH
Item belongs in the rune pouch.Typically slots 0-3 depending on rune pouch tier. Only rune items should use this type.
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException- if the argument is null
-