Enum Class LoadoutItem.Type

java.lang.Object
java.lang.Enum<LoadoutItem.Type>
net.storm.api.items.loadouts.LoadoutItem.Type
All Implemented Interfaces:
Serializable, Comparable<LoadoutItem.Type>, Constable
Enclosing class:
LoadoutItem

public static enum LoadoutItem.Type extends Enum<LoadoutItem.Type>
Defines the container type for a loadout item.

This enum specifies where the item should be placed when the loadout is applied.

  • Enum Constant Details

    • INVENTORY

      public static final LoadoutItem.Type INVENTORY
      Item belongs in the player's inventory (slots 0-27).
    • EQUIPMENT

      public static final LoadoutItem.Type EQUIPMENT
      Item belongs in the player's equipment.

      The slot corresponds to equipment slot indices (e.g., head, cape, amulet, weapon, etc.).

    • RUNE_POUCH

      public static final LoadoutItem.Type 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

      public static LoadoutItem.Type[] 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

      public static LoadoutItem.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null