Class DefaultFuzzyItemEntry
java.lang.Object
org.rspeer.game.config.item.entry.impl.DefaultItemEntry
org.rspeer.game.config.item.entry.impl.DefaultFuzzyItemEntry
- All Implemented Interfaces:
Serializable
,Cloneable
,FuzzyItemEntry
,ItemEntry
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultFuzzyItemEntry
(String key, boolean strict, int minimumQuantity, int quantity, boolean stackable, boolean noted, RestockMeta restockMeta, boolean optional, int maximumConsumableQuantity, int minimumConsumableQuantity, Equipment.Slot equipmentSlot) -
Method Summary
Modifier and TypeMethodDescriptionclone()
clone
(RestockMeta restockMeta) int
int
boolean
isStrict()
Methods inherited from class org.rspeer.game.config.item.entry.impl.DefaultItemEntry
getEquipmentSlot, getKey, getMinimumQuantity, getQuantity, getRestockMeta, getSetup, isNoted, isOptional, isStackable, setSetup
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.rspeer.game.config.item.entry.FuzzyItemEntry
contained, getContained, getKey
Methods inherited from interface org.rspeer.game.config.item.entry.ItemEntry
contained, contained, contained, getContained, getEquipmentSlot, getMinimumQuantity, getQuantity, getRestockMeta, getSetup, isNoted, isOptional, isStackable, setSetup
-
Constructor Details
-
DefaultFuzzyItemEntry
public DefaultFuzzyItemEntry() -
DefaultFuzzyItemEntry
public DefaultFuzzyItemEntry(String key, boolean strict, int minimumQuantity, int quantity, boolean stackable, boolean noted, RestockMeta restockMeta, boolean optional, int maximumConsumableQuantity, int minimumConsumableQuantity, Equipment.Slot equipmentSlot)
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceItemEntry
- Overrides:
clone
in classDefaultItemEntry
-
clone
- Specified by:
clone
in interfaceItemEntry
- Overrides:
clone
in classDefaultItemEntry
-
isStrict
public boolean isStrict()- Specified by:
isStrict
in interfaceFuzzyItemEntry
- Returns:
true
if the item consumable quantity should be strict to the maximum.- See Also:
-
getMaximumConsumableQuantity
public int getMaximumConsumableQuantity()- Specified by:
getMaximumConsumableQuantity
in interfaceFuzzyItemEntry
- 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
public int getMinimumConsumableQuantity()- Specified by:
getMinimumConsumableQuantity
in interfaceFuzzyItemEntry
- 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.
-