Interface FuzzyItemEntry
-
- All Superinterfaces:
Cloneable,ItemEntry,Serializable
- All Known Implementing Classes:
DefaultFuzzyItemEntry
public interface FuzzyItemEntry extends ItemEntry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancontained(ItemQuery query, boolean strict)default ItemQueryResultsgetContained(ItemQuery query)StringgetKey()intgetMaximumConsumableQuantity()intgetMinimumConsumableQuantity()booleanisStrict()-
Methods inherited from interface org.rspeer.game.config.item.entry.ItemEntry
clone, clone, contained, contained, contained, getContained, getEquipmentSlot, getMinimumQuantity, getQuantity, getRestockMeta, getSetup, interchange, isNoted, isOptional, isStackable, setSetup
-
-
-
-
Method Detail
-
getKey
String getKey()
-
isStrict
boolean isStrict()
- Returns:
trueif 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.
-
getContained
default ItemQueryResults getContained(ItemQuery query)
- Specified by:
getContainedin interfaceItemEntry
-
-