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
public class DefaultFuzzyItemEntry extends DefaultItemEntry implements FuzzyItemEntry
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultFuzzyItemEntry()
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FuzzyItemEntry
clone()
FuzzyItemEntry
clone(RestockMeta restockMeta)
int
getMaximumConsumableQuantity()
int
getMinimumConsumableQuantity()
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 Detail
-
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 Detail
-
clone
public FuzzyItemEntry clone()
- Specified by:
clone
in interfaceItemEntry
- Overrides:
clone
in classDefaultItemEntry
-
clone
public FuzzyItemEntry clone(RestockMeta restockMeta)
- 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:
FuzzyItemEntry.getMaximumConsumableQuantity()
-
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.
-
-