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 InventoryLoadoutaddReq(int id)InventoryLoadoutaddReq(int id, int amount)InventoryLoadoutaddReq(int id, int min, int max)InventoryLoadoutaddReq(int id, int min, java.util.function.Supplier<java.lang.Integer> max)InventoryLoadoutaddReq(int id, java.util.function.Supplier<java.lang.Integer> amount)InventoryLoadoutaddReq(int id, java.util.function.Supplier<java.lang.Integer> min, int max)InventoryLoadoutaddReq(int id, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)InventoryLoadoutaddReq(java.util.function.Supplier<java.lang.Integer> idSupplier)InventoryLoadoutaddReq(java.util.function.Supplier<java.lang.Integer> idSupplier, int amount)InventoryLoadoutaddReq(java.util.function.Supplier<java.lang.Integer> idSupplier, int min, int max)InventoryLoadoutaddReq(java.util.function.Supplier<java.lang.Integer> idSupplier, int min, java.util.function.Supplier<java.lang.Integer> max)InventoryLoadoutaddReq(java.util.function.Supplier<java.lang.Integer> idSupplier, java.util.function.Supplier<java.lang.Integer> amount)InventoryLoadoutaddReq(java.util.function.Supplier<java.lang.Integer> idSupplier, java.util.function.Supplier<java.lang.Integer> min, int max)InventoryLoadoutaddReq(java.util.function.Supplier<java.lang.Integer> idSupplier, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)InventoryLoadoutaddReq(InventoryLoadoutItem item)InventoryLoadoutaddReq(ItemMapping mapping)InventoryLoadoutaddReq(ItemMapping mapping, int amount)InventoryLoadoutaddReq(ItemMapping mapping, int min, int max)InventoryLoadoutaddReq(ItemMapping mapping, int min, java.util.function.Supplier<java.lang.Integer> max)InventoryLoadoutaddReq(ItemMapping mapping, java.util.function.Supplier<java.lang.Integer> amount)InventoryLoadoutaddReq(ItemMapping mapping, java.util.function.Supplier<java.lang.Integer> min, int max)InventoryLoadoutaddReq(ItemMapping mapping, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)InventoryLoadoutaddReq(ItemVariant variant)InventoryLoadoutaddReq(ItemVariant variant, int amount)InventoryLoadoutaddReq(ItemVariant variant, int min, int max)InventoryLoadoutaddReq(ItemVariant variant, int min, java.util.function.Supplier<java.lang.Integer> max)InventoryLoadoutaddReq(ItemVariant variant, java.util.function.Supplier<java.lang.Integer> amount)InventoryLoadoutaddReq(ItemVariant variant, java.util.function.Supplier<java.lang.Integer> min, int max)InventoryLoadoutaddReq(ItemVariant variant, java.util.function.Supplier<java.lang.Integer> min, java.util.function.Supplier<java.lang.Integer> max)voidclear()java.util.List<InventoryLoadoutItem>getActionableItems()java.util.List<InventoryLoadoutItem>getActionableItems(boolean unfiltered)int[]getIDs()java.util.List<InventoryLoadoutItem>getItems()intgetMax(int... ids)intgetMin(int... ids)intgetPrice(int id)intgetRefill(int... ids)intgetTotalPrice()java.util.List<InventoryLoadoutItem>getUnfilteredItems()InventoryLoadoutsetEnabled(java.util.function.Supplier<java.lang.Boolean> enabled)InventoryLoadoutsetLoadoutStrict()InventoryLoadoutsetLoadoutStrict(java.util.function.BooleanSupplier strictSupplier)InventoryLoadoutsetMaxPrice(int maxPrice)InventoryLoadoutsetMaxPrice(java.util.function.Supplier<java.lang.Integer> maxPrice)InventoryLoadoutsetNoted()InventoryLoadoutsetPrice(int price)InventoryLoadoutsetPrice(java.util.function.Supplier<java.lang.Integer> price)InventoryLoadoutsetRefill(int refill)InventoryLoadoutsetRefill(int refill, boolean buyUpTo)InventoryLoadoutsetRefill(java.util.function.Supplier<java.lang.Integer> refill)InventoryLoadoutsetRefill(java.util.function.Supplier<java.lang.Integer> refill, boolean buyUpTo)InventoryLoadoutsetShared()InventoryLoadoutsetShared(java.util.function.Supplier<java.lang.Boolean> b)InventoryLoadoutsetStrict(boolean b)InventoryLoadoutsetStrict(java.util.function.Supplier<java.lang.Boolean> b)InventoryLoadoutsetWaitTimeMillis(long waitTimeMillis)InventoryLoadoutsetWaitTimeMillis(java.util.function.Supplier<java.lang.Long> waitTimeMillisSupplier)booleanshouldBank()-
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:
getMaxin classLoadout<InventoryLoadoutItem>
-
getMin
public int getMin(int... ids)
- Specified by:
getMinin classLoadout<InventoryLoadoutItem>
-
getRefill
public int getRefill(int... ids)
- Specified by:
getRefillin classLoadout<InventoryLoadoutItem>
-
getPrice
public int getPrice(int id)
- Specified by:
getPricein classLoadout<InventoryLoadoutItem>
-
setLoadoutStrict
public InventoryLoadout setLoadoutStrict()
- Specified by:
setLoadoutStrictin classLoadout<InventoryLoadoutItem>
-
setLoadoutStrict
public InventoryLoadout setLoadoutStrict(java.util.function.BooleanSupplier strictSupplier)
- Specified by:
setLoadoutStrictin classLoadout<InventoryLoadoutItem>
-
getItems
public java.util.List<InventoryLoadoutItem> getItems()
- Specified by:
getItemsin classLoadout<InventoryLoadoutItem>
-
getUnfilteredItems
public java.util.List<InventoryLoadoutItem> getUnfilteredItems()
-
getActionableItems
public java.util.List<InventoryLoadoutItem> getActionableItems()
- Specified by:
getActionableItemsin classLoadout<InventoryLoadoutItem>
-
getActionableItems
public java.util.List<InventoryLoadoutItem> getActionableItems(boolean unfiltered)
-
getIDs
public int[] getIDs()
- Specified by:
getIDsin classLoadout<InventoryLoadoutItem>
-
shouldBank
public boolean shouldBank()
- Specified by:
shouldBankin classLoadout<InventoryLoadoutItem>
-
getTotalPrice
public int getTotalPrice()
- Specified by:
getTotalPricein classLoadout<InventoryLoadoutItem>
-
-