Interface FuzzyItemEntry

All Superinterfaces:
Cloneable, ItemEntry, Serializable
All Known Implementing Classes:
DefaultFuzzyItemEntry

public interface FuzzyItemEntry extends ItemEntry
  • Method Details

    • getKey

      String getKey()
      Specified by:
      getKey in interface ItemEntry
      Returns:
      The name of the item without the dose/charge. Example: Ring of dueling
    • isStrict

      boolean isStrict()
      Returns:
      true if the item consumable quantity should be strict to the maximum.
      See Also:
    • getMaximumConsumableQuantity

      int getMaximumConsumableQuantity()
      Returns:
      The maximum consumptions this item allows in a loadout. For example a ring of dueling has 8 charges, while potions have 4 charges. You can set a lower maximum if you wish to only use lower charge/dose items, the restock handler will purchase items based on the charge/dose from this method
    • getMinimumConsumableQuantity

      int getMinimumConsumableQuantity()
      Returns:
      The minimum consumptions this item allows in a loadout. For example if you don't want to withdraw 1 dose potions but 2-4 is ok, set this to 2.
    • getContained

      default ItemQueryResults getContained(ItemQuery query)
      Specified by:
      getContained in interface ItemEntry
    • contained

      default boolean contained(ItemQuery query, boolean strict)
      Specified by:
      contained in interface ItemEntry
      Returns:
      true if this ItemEntry is contained in the given inventory