Class GearSetup.Entry
java.lang.Object
privbot.mechanics.GearSetup.Entry
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(int id, String name, int slot, int quantity, int minimum, GearSetup.Role role, String doseFamily) -
Method Summary
-
Constructor Details
-
Entry
public Entry(int id, String name, int slot, int quantity, int minimum, GearSetup.Role role, String doseFamily) - Parameters:
id- item idname- item name (null: "")slot- slot index; for worn entries the equipment slot, for carried ones where it was seenquantity- the wanted stack totalminimum- 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
- 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
- Returns:
- what the item is for
-
doseFamily
- Returns:
- the potion's dose family (lower case, no dose), or null when it is not a drink
-
equals
-
hashCode
-
toString
-