Class AbstractLoadoutItem
- java.lang.Object
-
- net.eternalclient.api.events.loadout.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 Summary
Constructors Modifier Constructor Description protected
AbstractLoadoutItem(int id)
protected
AbstractLoadoutItem(int id, int min, int max)
protected
AbstractLoadoutItem(int id, int min, java.util.function.Supplier<java.lang.Integer> max)
protected
AbstractLoadoutItem(int id, java.util.function.Supplier<java.lang.Integer> min, int max)
protected
AbstractLoadoutItem(int id, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)
protected
AbstractLoadoutItem(java.util.function.Supplier<java.lang.Integer> idSupplier, int min, int max)
protected
AbstractLoadoutItem(java.util.function.Supplier<java.lang.Integer> idSupplier, int min, java.util.function.Supplier<java.lang.Integer> max)
protected
AbstractLoadoutItem(java.util.function.Supplier<java.lang.Integer> idSupplier, java.util.function.Supplier<java.lang.Integer> min, int max)
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)
protected
AbstractLoadoutItem(AbstractLoadoutItem item)
protected
AbstractLoadoutItem(ItemMapping mapping, int min, int max)
protected
AbstractLoadoutItem(ItemMapping mapping, int min, java.util.function.Supplier<java.lang.Integer> max)
protected
AbstractLoadoutItem(ItemMapping mapping, java.util.function.Supplier<java.lang.Integer> min, int max)
protected
AbstractLoadoutItem(ItemMapping mapping, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)
protected
AbstractLoadoutItem(ItemVariant variant, int min, int max)
protected
AbstractLoadoutItem(ItemVariant variant, int min, java.util.function.Supplier<java.lang.Integer> max)
protected
AbstractLoadoutItem(ItemVariant variant, java.util.function.Supplier<java.lang.Integer> min, int max)
protected
AbstractLoadoutItem(ItemVariant variant, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getBankCount()
int
getCarriedCount()
int
getCarriedCount(boolean includeNoted)
ItemComposite
getDefinition()
ItemComposite
getDefinition(boolean getVariantBase)
java.util.function.Supplier<ItemComposite>
getDefinitionSupplier()
java.util.function.Supplier<java.lang.Boolean>
getEnabledSupplier()
int
getEquipmentCount()
int
getID()
int
getInventoryCount()
int
getInventoryCount(boolean includeNoted)
ItemMapping
getItemMapping()
ItemVariant
getItemVariant()
int
getMax()
int
getMaxPrice()
java.util.function.Supplier<java.lang.Integer>
getMaxPriceSupplier()
java.util.function.Supplier<java.lang.Integer>
getMaxSupplier()
int
getMin()
java.util.function.Supplier<java.lang.Integer>
getMinSupplier()
java.lang.String
getName()
int
getNotedID()
int
getOwnedCount()
int
getOwnedCount(boolean includeNoted)
int
getPrice()
java.util.function.Supplier<java.lang.Integer>
getPriceFixedIncreaseSupplier()
java.util.function.Supplier<java.lang.Integer>
getPriceIncreasePercentageSupplier()
java.util.function.Supplier<java.lang.Integer>
getPriceSupplier()
int
getRefill()
java.util.function.Supplier<java.lang.Integer>
getRefillSupplier()
java.util.function.Supplier<java.lang.Boolean>
getSharedSupplier()
java.util.function.Supplier<java.lang.Boolean>
getStrictSupplier()
protected abstract LoadoutItemType
getType()
int
getUnnotedID()
java.util.function.Supplier<java.lang.Long>
getWaitTimeMillisSupplier()
boolean
isBuyUpTo()
boolean
isEnabled()
boolean
isMembers()
boolean
isNoted()
boolean
isShared()
boolean
isStackable()
boolean
isStrict()
boolean
isVariant()
AbstractLoadoutItem
setEnabled(java.util.function.Supplier<java.lang.Boolean> enabledSupplier)
AbstractLoadoutItem
setMax(int max)
AbstractLoadoutItem
setMax(java.util.function.Supplier<java.lang.Integer> max)
AbstractLoadoutItem
setMaxPrice(int maxPrice)
AbstractLoadoutItem
setMaxPrice(java.util.function.Supplier<java.lang.Integer> maxPrice)
AbstractLoadoutItem
setMin(int min)
AbstractLoadoutItem
setMin(java.util.function.Supplier<java.lang.Integer> min)
AbstractLoadoutItem
setNoted()
AbstractLoadoutItem
setPrice(int price)
AbstractLoadoutItem
setPrice(java.util.function.Supplier<java.lang.Integer> price)
AbstractLoadoutItem
setPriceFixedIncrease(int priceFixedIncrease)
AbstractLoadoutItem
setPriceFixedIncrease(java.util.function.Supplier<java.lang.Integer> priceFixedIncreaseSupplier)
AbstractLoadoutItem
setPriceIncreasePercentage(int priceIncreasePercentage)
AbstractLoadoutItem
setPriceIncreasePercentage(java.util.function.Supplier<java.lang.Integer> priceIncreasePercentageSupplier)
AbstractLoadoutItem
setRefill(int refill)
AbstractLoadoutItem
setRefill(int refill, boolean upTo)
AbstractLoadoutItem
setRefill(java.util.function.Supplier<java.lang.Integer> refill)
AbstractLoadoutItem
setRefill(java.util.function.Supplier<java.lang.Integer> refill, boolean upTo)
AbstractLoadoutItem
setShared(boolean b)
AbstractLoadoutItem
setShared(java.util.function.Supplier<java.lang.Boolean> b)
AbstractLoadoutItem
setStrict(boolean b)
AbstractLoadoutItem
setStrict(java.util.function.Supplier<java.lang.Boolean> b)
AbstractLoadoutItem
setWaitTimeMillis(long waitTimeMillis)
AbstractLoadoutItem
setWaitTimeMillis(java.util.function.Supplier<java.lang.Long> waitTimeMillisSupplier)
java.lang.String
toString()
-
-
-
Constructor Detail
-
AbstractLoadoutItem
protected AbstractLoadoutItem(int id)
-
AbstractLoadoutItem
protected AbstractLoadoutItem(AbstractLoadoutItem item)
-
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
-
getType
protected abstract LoadoutItemType getType()
-
getDefinition
public ItemComposite getDefinition()
-
getDefinition
public ItemComposite getDefinition(boolean getVariantBase)
-
setNoted
public AbstractLoadoutItem setNoted()
-
setRefill
public AbstractLoadoutItem setRefill(int refill, boolean upTo)
-
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)
-
setWaitTimeMillis
public AbstractLoadoutItem setWaitTimeMillis(long waitTimeMillis)
-
isStrict
public boolean isStrict()
-
setStrict
public AbstractLoadoutItem setStrict(boolean b)
-
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(boolean b)
-
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)
-
setMin
public AbstractLoadoutItem setMin(int min)
-
getMax
public int getMax()
-
setMax
public AbstractLoadoutItem setMax(java.util.function.Supplier<java.lang.Integer> max)
-
setMax
public AbstractLoadoutItem setMax(int max)
-
getRefill
public int getRefill()
-
setRefill
public AbstractLoadoutItem setRefill(int refill)
-
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)
-
setPrice
public AbstractLoadoutItem setPrice(int price)
-
getMaxPrice
public int getMaxPrice()
-
setMaxPrice
public AbstractLoadoutItem setMaxPrice(java.util.function.Supplier<java.lang.Integer> maxPrice)
-
setMaxPrice
public AbstractLoadoutItem setMaxPrice(int 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 classjava.lang.Object
-
getItemMapping
public ItemMapping getItemMapping()
-
getItemVariant
public ItemVariant getItemVariant()
-
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()
-
-