Class GearSetup.Entry

java.lang.Object
privbot.mechanics.GearSetup.Entry
Enclosing class:
GearSetup

public static final class GearSetup.Entry extends Object
One wanted item.
  • Constructor Details

    • Entry

      public Entry(int id, String name, int slot, int quantity, int minimum, GearSetup.Role role, String doseFamily)
      Parameters:
      id - item id
      name - item name (null: "")
      slot - slot index; for worn entries the equipment slot, for carried ones where it was seen
      quantity - the wanted stack total
      minimum - the least count at which the item is still usable (0 for food and drinks)
      role - what it is for (null: GearSetup.Role.OTHER)
      doseFamily - the lower-cased potion name without its dose, or null when it is not a drink
  • Method Details

    • id

      public int id()
      Returns:
      the item id
    • name

      public String name()
      Returns:
      the item name as captured
    • slot

      public int slot()
      Returns:
      the slot index (the requirement for worn entries, where it was seen for carried ones)
    • quantity

      public int quantity()
      Returns:
      the wanted stack total
    • minimum

      public int minimum()
      Returns:
      the least count at which the item is still usable
    • role

      public GearSetup.Role role()
      Returns:
      what the item is for
    • doseFamily

      public String doseFamily()
      Returns:
      the potion's dose family (lower case, no dose), or null when it is not a drink
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object