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
ConstructorsConstructorDescriptionDefaultFuzzyItemEntry(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) intintbooleanisStrict()Methods inherited from class DefaultItemEntry
getEquipmentSlot, getKey, getMinimumQuantity, getQuantity, getRestockMeta, getSetup, interchange, isNoted, isOptional, isStackable, setSetupMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FuzzyItemEntry
contained, getContained, getKeyMethods inherited from interface ItemEntry
contained, contained, contained, getContained, getEquipmentSlot, getMinimumQuantity, getQuantity, getRestockMeta, getSetup, interchange, 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:
clonein interfaceItemEntry- Overrides:
clonein classDefaultItemEntry
-
clone
- Specified by:
clonein interfaceItemEntry- Overrides:
clonein classDefaultItemEntry
-
isStrict
public boolean isStrict()- Specified by:
isStrictin interfaceFuzzyItemEntry- Returns:
trueif the item consumable quantity should be strict to the maximum.- See Also:
-
getMaximumConsumableQuantity
public int getMaximumConsumableQuantity()- Specified by:
getMaximumConsumableQuantityin 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:
getMinimumConsumableQuantityin 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.
-