Class InventoryLoadout
- java.lang.Object
-
- net.eternalclient.api.events.loadout.Loadout<InventoryLoadoutItem>
-
- net.eternalclient.api.events.loadout.InventoryLoadout
-
public class InventoryLoadout extends Loadout<InventoryLoadoutItem>
This class represents an inventory loadout, and it extends the Loadout class. It provides various methods for adding and configuring different requirements for the loadout, such as the items, quantities, and prices. It also includes methods for retrieving and manipulating the loadout items, as well as determining if the loadout should be banked.
-
-
Field Summary
-
Fields inherited from class net.eternalclient.api.events.loadout.Loadout
strictSupplier
-
-
Constructor Summary
Constructors Constructor Description InventoryLoadout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InventoryLoadout
addReq(int id)
InventoryLoadout
addReq(int id, int amount)
InventoryLoadout
addReq(int id, int min, int max)
InventoryLoadout
addReq(int id, int min, java.util.function.Supplier<java.lang.Integer> max)
InventoryLoadout
addReq(int id, java.util.function.Supplier<java.lang.Integer> amount)
InventoryLoadout
addReq(int id, java.util.function.Supplier<java.lang.Integer> min, int max)
InventoryLoadout
addReq(int id, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)
InventoryLoadout
addReq(java.util.function.Supplier<java.lang.Integer> idSupplier)
InventoryLoadout
addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, int amount)
InventoryLoadout
addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, int min, int max)
InventoryLoadout
addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, int min, java.util.function.Supplier<java.lang.Integer> max)
InventoryLoadout
addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, java.util.function.Supplier<java.lang.Integer> amount)
InventoryLoadout
addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, java.util.function.Supplier<java.lang.Integer> min, int max)
InventoryLoadout
addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)
InventoryLoadout
addReq(InventoryLoadoutItem item)
InventoryLoadout
addReq(ItemMapping mapping)
InventoryLoadout
addReq(ItemMapping mapping, int amount)
InventoryLoadout
addReq(ItemMapping mapping, int min, int max)
InventoryLoadout
addReq(ItemMapping mapping, int min, java.util.function.Supplier<java.lang.Integer> max)
InventoryLoadout
addReq(ItemMapping mapping, java.util.function.Supplier<java.lang.Integer> amount)
InventoryLoadout
addReq(ItemMapping mapping, java.util.function.Supplier<java.lang.Integer> min, int max)
InventoryLoadout
addReq(ItemMapping mapping, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)
InventoryLoadout
addReq(ItemVariant variant)
InventoryLoadout
addReq(ItemVariant variant, int amount)
InventoryLoadout
addReq(ItemVariant variant, int min, int max)
InventoryLoadout
addReq(ItemVariant variant, int min, java.util.function.Supplier<java.lang.Integer> max)
InventoryLoadout
addReq(ItemVariant variant, java.util.function.Supplier<java.lang.Integer> amount)
InventoryLoadout
addReq(ItemVariant variant, java.util.function.Supplier<java.lang.Integer> min, int max)
InventoryLoadout
addReq(ItemVariant variant, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)
void
clear()
java.util.List<InventoryLoadoutItem>
getActionableItems()
java.util.List<InventoryLoadoutItem>
getActionableItems(boolean unfiltered)
int[]
getIDs()
java.util.List<InventoryLoadoutItem>
getItems()
int
getMax(int... ids)
int
getMin(int... ids)
int
getPrice(int id)
int
getRefill(int... ids)
int
getTotalPrice()
java.util.List<InventoryLoadoutItem>
getUnfilteredItems()
InventoryLoadout
setEnabled(java.util.function.Supplier<java.lang.Boolean> enabled)
InventoryLoadout
setLoadoutStrict()
InventoryLoadout
setLoadoutStrict(java.util.function.BooleanSupplier strictSupplier)
InventoryLoadout
setMaxPrice(int maxPrice)
InventoryLoadout
setMaxPrice(java.util.function.Supplier<java.lang.Integer> maxPrice)
InventoryLoadout
setNoted()
InventoryLoadout
setPrice(int price)
InventoryLoadout
setPrice(java.util.function.Supplier<java.lang.Integer> price)
InventoryLoadout
setRefill(int refill)
InventoryLoadout
setRefill(int refill, boolean buyUpTo)
InventoryLoadout
setRefill(java.util.function.Supplier<java.lang.Integer> refill)
InventoryLoadout
setRefill(java.util.function.Supplier<java.lang.Integer> refill, boolean buyUpTo)
InventoryLoadout
setShared()
InventoryLoadout
setShared(java.util.function.Supplier<java.lang.Boolean> b)
InventoryLoadout
setStrict(boolean b)
InventoryLoadout
setStrict(java.util.function.Supplier<java.lang.Boolean> b)
InventoryLoadout
setWaitTimeMillis(long waitTimeMillis)
InventoryLoadout
setWaitTimeMillis(java.util.function.Supplier<java.lang.Long> waitTimeMillisSupplier)
boolean
shouldBank()
-
Methods inherited from class net.eternalclient.api.events.loadout.Loadout
isFulfilled, isStrict
-
-
-
-
Method Detail
-
clear
public void clear()
-
addReq
public InventoryLoadout addReq(int id, int min, int max)
-
addReq
public InventoryLoadout addReq(int id)
-
addReq
public InventoryLoadout addReq(int id, int amount)
-
addReq
public InventoryLoadout addReq(int id, java.util.function.Supplier<java.lang.Integer> amount)
-
addReq
public InventoryLoadout addReq(int id, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)
-
addReq
public InventoryLoadout addReq(int id, int min, java.util.function.Supplier<java.lang.Integer> max)
-
addReq
public InventoryLoadout addReq(int id, java.util.function.Supplier<java.lang.Integer> min, int max)
-
addReq
public InventoryLoadout addReq(java.util.function.Supplier<java.lang.Integer> idSupplier)
-
addReq
public InventoryLoadout addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, int amount)
-
addReq
public InventoryLoadout addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, java.util.function.Supplier<java.lang.Integer> amount)
-
addReq
public InventoryLoadout addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, int min, int max)
-
addReq
public InventoryLoadout addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)
-
addReq
public InventoryLoadout addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, int min, java.util.function.Supplier<java.lang.Integer> max)
-
addReq
public InventoryLoadout addReq(java.util.function.Supplier<java.lang.Integer> idSupplier, java.util.function.Supplier<java.lang.Integer> min, int max)
-
addReq
public InventoryLoadout addReq(ItemMapping mapping, int min, int max)
-
addReq
public InventoryLoadout addReq(ItemMapping mapping, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)
-
addReq
public InventoryLoadout addReq(ItemMapping mapping, int min, java.util.function.Supplier<java.lang.Integer> max)
-
addReq
public InventoryLoadout addReq(ItemMapping mapping, java.util.function.Supplier<java.lang.Integer> min, int max)
-
addReq
public InventoryLoadout addReq(ItemMapping mapping, java.util.function.Supplier<java.lang.Integer> amount)
-
addReq
public InventoryLoadout addReq(ItemMapping mapping, int amount)
-
addReq
public InventoryLoadout addReq(ItemMapping mapping)
-
addReq
public InventoryLoadout addReq(ItemVariant variant, int min, int max)
-
addReq
public InventoryLoadout addReq(ItemVariant variant, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)
-
addReq
public InventoryLoadout addReq(ItemVariant variant, int min, java.util.function.Supplier<java.lang.Integer> max)
-
addReq
public InventoryLoadout addReq(ItemVariant variant, java.util.function.Supplier<java.lang.Integer> min, int max)
-
addReq
public InventoryLoadout addReq(ItemVariant variant, java.util.function.Supplier<java.lang.Integer> amount)
-
addReq
public InventoryLoadout addReq(ItemVariant variant, int amount)
-
addReq
public InventoryLoadout addReq(ItemVariant variant)
-
addReq
public InventoryLoadout addReq(InventoryLoadoutItem item)
-
setStrict
public InventoryLoadout setStrict(boolean b)
-
setStrict
public InventoryLoadout setStrict(java.util.function.Supplier<java.lang.Boolean> b)
-
setEnabled
public InventoryLoadout setEnabled(java.util.function.Supplier<java.lang.Boolean> enabled)
-
setShared
public InventoryLoadout setShared()
-
setShared
public InventoryLoadout setShared(java.util.function.Supplier<java.lang.Boolean> b)
-
setNoted
public InventoryLoadout setNoted()
-
setPrice
public InventoryLoadout setPrice(int price)
-
setPrice
public InventoryLoadout setPrice(java.util.function.Supplier<java.lang.Integer> price)
-
setMaxPrice
public InventoryLoadout setMaxPrice(int maxPrice)
-
setMaxPrice
public InventoryLoadout setMaxPrice(java.util.function.Supplier<java.lang.Integer> maxPrice)
-
setRefill
public InventoryLoadout setRefill(int refill)
-
setRefill
public InventoryLoadout setRefill(int refill, boolean buyUpTo)
-
setRefill
public InventoryLoadout setRefill(java.util.function.Supplier<java.lang.Integer> refill)
-
setRefill
public InventoryLoadout setRefill(java.util.function.Supplier<java.lang.Integer> refill, boolean buyUpTo)
-
setWaitTimeMillis
public InventoryLoadout setWaitTimeMillis(java.util.function.Supplier<java.lang.Long> waitTimeMillisSupplier)
-
setWaitTimeMillis
public InventoryLoadout setWaitTimeMillis(long waitTimeMillis)
-
getMax
public int getMax(int... ids)
- Specified by:
getMax
in classLoadout<InventoryLoadoutItem>
-
getMin
public int getMin(int... ids)
- Specified by:
getMin
in classLoadout<InventoryLoadoutItem>
-
getRefill
public int getRefill(int... ids)
- Specified by:
getRefill
in classLoadout<InventoryLoadoutItem>
-
getPrice
public int getPrice(int id)
- Specified by:
getPrice
in classLoadout<InventoryLoadoutItem>
-
setLoadoutStrict
public InventoryLoadout setLoadoutStrict()
- Specified by:
setLoadoutStrict
in classLoadout<InventoryLoadoutItem>
-
setLoadoutStrict
public InventoryLoadout setLoadoutStrict(java.util.function.BooleanSupplier strictSupplier)
- Specified by:
setLoadoutStrict
in classLoadout<InventoryLoadoutItem>
-
getItems
public java.util.List<InventoryLoadoutItem> getItems()
- Specified by:
getItems
in classLoadout<InventoryLoadoutItem>
-
getUnfilteredItems
public java.util.List<InventoryLoadoutItem> getUnfilteredItems()
-
getActionableItems
public java.util.List<InventoryLoadoutItem> getActionableItems()
- Specified by:
getActionableItems
in classLoadout<InventoryLoadoutItem>
-
getActionableItems
public java.util.List<InventoryLoadoutItem> getActionableItems(boolean unfiltered)
-
getIDs
public int[] getIDs()
- Specified by:
getIDs
in classLoadout<InventoryLoadoutItem>
-
shouldBank
public boolean shouldBank()
- Specified by:
shouldBank
in classLoadout<InventoryLoadoutItem>
-
getTotalPrice
public int getTotalPrice()
- Specified by:
getTotalPrice
in classLoadout<InventoryLoadoutItem>
-
-