Interface FuzzyItemEntry

    • Method Detail

      • 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()
      • 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.
      • 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