Class Loadout<T extends AbstractLoadoutItem>
- java.lang.Object
-
- net.eternalclient.api.events.loadout.Loadout<T>
-
- Direct Known Subclasses:
EquipmentLoadout
,InventoryLoadout
public abstract class Loadout<T extends AbstractLoadoutItem> extends java.lang.Object
This class is an abstract loadout that provides methods to interact with a collection of loadout items, such as getting the items, checking if they should be banked, and getting various properties of the loadout.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.BooleanSupplier
strictSupplier
-
Constructor Summary
Constructors Constructor Description Loadout()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.List<T>
getActionableItems()
abstract int[]
getIDs()
abstract java.util.List<T>
getItems()
abstract int
getMax(int... ints)
abstract int
getMin(int... ints)
abstract int
getPrice(int id)
abstract int
getRefill(int... ints)
abstract int
getTotalPrice()
boolean
isFulfilled()
boolean
isStrict()
abstract Loadout<T>
setLoadoutStrict()
abstract Loadout<T>
setLoadoutStrict(java.util.function.BooleanSupplier strictSupplier)
abstract boolean
shouldBank()
-
-
-
Method Detail
-
getItems
public abstract java.util.List<T> getItems()
-
getActionableItems
public abstract java.util.List<T> getActionableItems()
-
shouldBank
public abstract boolean shouldBank()
-
getMax
public abstract int getMax(int... ints)
-
getMin
public abstract int getMin(int... ints)
-
getRefill
public abstract int getRefill(int... ints)
-
getPrice
public abstract int getPrice(int id)
-
getTotalPrice
public abstract int getTotalPrice()
-
setLoadoutStrict
public abstract Loadout<T> setLoadoutStrict(java.util.function.BooleanSupplier strictSupplier)
-
getIDs
public abstract int[] getIDs()
-
isStrict
public boolean isStrict()
-
isFulfilled
public boolean isFulfilled()
-
-