Class AbstractLoadoutItem

  • Direct Known Subclasses:
    EquipmentLoadoutItem, InventoryLoadoutItem

    public abstract class AbstractLoadoutItem
    extends java.lang.Object
    This class represents an abstract loadout item. The class contains various getters, setters, and utility methods for managing loadout items.
    • Constructor Detail

      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(int id)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(int id,
                                      int min,
                                      int max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(int id,
                                      java.util.function.Supplier<java.lang.Integer> min,
                                      java.util.function.Supplier<java.lang.Integer> max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(int id,
                                      int min,
                                      java.util.function.Supplier<java.lang.Integer> max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(int id,
                                      java.util.function.Supplier<java.lang.Integer> min,
                                      int max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(java.util.function.Supplier<java.lang.Integer> idSupplier,
                                      int min,
                                      int max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(java.util.function.Supplier<java.lang.Integer> idSupplier,
                                      java.util.function.Supplier<java.lang.Integer> min,
                                      java.util.function.Supplier<java.lang.Integer> max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(java.util.function.Supplier<java.lang.Integer> idSupplier,
                                      int min,
                                      java.util.function.Supplier<java.lang.Integer> max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(java.util.function.Supplier<java.lang.Integer> idSupplier,
                                      java.util.function.Supplier<java.lang.Integer> min,
                                      int max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(ItemMapping mapping,
                                      int min,
                                      int max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(ItemMapping mapping,
                                      java.util.function.Supplier<java.lang.Integer> min,
                                      java.util.function.Supplier<java.lang.Integer> max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(ItemMapping mapping,
                                      int min,
                                      java.util.function.Supplier<java.lang.Integer> max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(ItemMapping mapping,
                                      java.util.function.Supplier<java.lang.Integer> min,
                                      int max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(ItemVariant variant,
                                      int min,
                                      int max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(ItemVariant variant,
                                      java.util.function.Supplier<java.lang.Integer> min,
                                      java.util.function.Supplier<java.lang.Integer> max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(ItemVariant variant,
                                      int min,
                                      java.util.function.Supplier<java.lang.Integer> max)
      • AbstractLoadoutItem

        protected AbstractLoadoutItem​(ItemVariant variant,
                                      java.util.function.Supplier<java.lang.Integer> min,
                                      int max)
    • Method Detail

      • getDefinition

        public ItemComposite getDefinition​(boolean getVariantBase)
      • setRefill

        public AbstractLoadoutItem setRefill​(java.util.function.Supplier<java.lang.Integer> refill,
                                             boolean upTo)
      • setPriceIncreasePercentage

        public AbstractLoadoutItem setPriceIncreasePercentage​(java.util.function.Supplier<java.lang.Integer> priceIncreasePercentageSupplier)
      • setPriceIncreasePercentage

        public AbstractLoadoutItem setPriceIncreasePercentage​(int priceIncreasePercentage)
      • setPriceFixedIncrease

        public AbstractLoadoutItem setPriceFixedIncrease​(java.util.function.Supplier<java.lang.Integer> priceFixedIncreaseSupplier)
      • setPriceFixedIncrease

        public AbstractLoadoutItem setPriceFixedIncrease​(int priceFixedIncrease)
      • setWaitTimeMillis

        public AbstractLoadoutItem setWaitTimeMillis​(java.util.function.Supplier<java.lang.Long> waitTimeMillisSupplier)
      • isStrict

        public boolean isStrict()
      • setStrict

        public AbstractLoadoutItem setStrict​(java.util.function.Supplier<java.lang.Boolean> b)
      • getID

        public int getID()
      • getName

        public java.lang.String getName()
      • getUnnotedID

        public int getUnnotedID()
      • getNotedID

        public int getNotedID()
      • isNoted

        public boolean isNoted()
      • isStackable

        public boolean isStackable()
      • isMembers

        public boolean isMembers()
      • isShared

        public boolean isShared()
      • setShared

        public AbstractLoadoutItem setShared​(java.util.function.Supplier<java.lang.Boolean> b)
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public AbstractLoadoutItem setEnabled​(java.util.function.Supplier<java.lang.Boolean> enabledSupplier)
      • getMin

        public int getMin()
      • setMin

        public AbstractLoadoutItem setMin​(java.util.function.Supplier<java.lang.Integer> min)
      • getMax

        public int getMax()
      • setMax

        public AbstractLoadoutItem setMax​(java.util.function.Supplier<java.lang.Integer> max)
      • getRefill

        public int getRefill()
      • setRefill

        public AbstractLoadoutItem setRefill​(java.util.function.Supplier<java.lang.Integer> refill)
      • getPrice

        public int getPrice()
      • setPrice

        public AbstractLoadoutItem setPrice​(java.util.function.Supplier<java.lang.Integer> price)
      • getMaxPrice

        public int getMaxPrice()
      • setMaxPrice

        public AbstractLoadoutItem setMaxPrice​(java.util.function.Supplier<java.lang.Integer> maxPrice)
      • isVariant

        public boolean isVariant()
      • getBankCount

        public int getBankCount()
      • getInventoryCount

        public int getInventoryCount()
      • getInventoryCount

        public int getInventoryCount​(boolean includeNoted)
      • getEquipmentCount

        public int getEquipmentCount()
      • getCarriedCount

        public int getCarriedCount()
      • getCarriedCount

        public int getCarriedCount​(boolean includeNoted)
      • getOwnedCount

        public int getOwnedCount()
      • getOwnedCount

        public int getOwnedCount​(boolean includeNoted)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getDefinitionSupplier

        public java.util.function.Supplier<ItemComposite> getDefinitionSupplier()
      • getMinSupplier

        public java.util.function.Supplier<java.lang.Integer> getMinSupplier()
      • getMaxSupplier

        public java.util.function.Supplier<java.lang.Integer> getMaxSupplier()
      • getRefillSupplier

        public java.util.function.Supplier<java.lang.Integer> getRefillSupplier()
      • getPriceSupplier

        public java.util.function.Supplier<java.lang.Integer> getPriceSupplier()
      • getMaxPriceSupplier

        public java.util.function.Supplier<java.lang.Integer> getMaxPriceSupplier()
      • getPriceIncreasePercentageSupplier

        public java.util.function.Supplier<java.lang.Integer> getPriceIncreasePercentageSupplier()
      • getPriceFixedIncreaseSupplier

        public java.util.function.Supplier<java.lang.Integer> getPriceFixedIncreaseSupplier()
      • getWaitTimeMillisSupplier

        public java.util.function.Supplier<java.lang.Long> getWaitTimeMillisSupplier()
      • getStrictSupplier

        public java.util.function.Supplier<java.lang.Boolean> getStrictSupplier()
      • getSharedSupplier

        public java.util.function.Supplier<java.lang.Boolean> getSharedSupplier()
      • getEnabledSupplier

        public java.util.function.Supplier<java.lang.Boolean> getEnabledSupplier()
      • isBuyUpTo

        public boolean isBuyUpTo()