Interface InventoryLoadout
- All Known Implementing Classes:
BackpackLoadout
,EquipmentLoadout
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds anItemEntry
to the loadoutdefault void
applyProvidedSetup
(ItemEntry entry) Applies a predefined setup if there is one available for the givenItemEntry
's keyclone()
getExcessEntries
(Inventory inventory) Deprecated, for removal: This API element is subject to removal in a future version.getInvalidItems
(Inventory inventory) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getMissingBackpackEntries
(boolean strict) getMissingEntries
(boolean strict) getMissingEntries
(Inventory inventory) getMissingEntries
(Inventory inventory, boolean strict) getMissingEquipmentEntries
(boolean strict) getName()
default ItemQueryResults
default ItemQueryResults
default ItemQueryResults
getValidResults
(Inventory inventory) default boolean
default boolean
isBackpackValid
(boolean strict) default boolean
isBagged()
Deprecated, for removal: This API element is subject to removal in a future version.default boolean
isBagged
(boolean strict) Deprecated, for removal: This API element is subject to removal in a future version.default boolean
default boolean
isEquipmentValid
(boolean strict) default boolean
isInventoryValid
(Inventory inventory) default boolean
isInventoryValid
(Inventory inventory, boolean strict) void
setOutOfItemListener
(Consumer<ItemEntry> outOfItemListener) boolean
withdraw()
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getName
String getName()- Returns:
- The name of this loadout
-
get
- Returns:
- An
ItemEntry
with the given key
-
add
Adds anItemEntry
to the loadout- Returns:
true
if an item was successfully added to the loadout
-
remove
- Returns:
- The removed entry, or null if no ItemEntry matching the key was present
-
getOutOfItemListener
-
setOutOfItemListener
-
clone
-
clone
InventoryLoadout clone() -
applyProvidedSetup
Applies a predefined setup if there is one available for the givenItemEntry
's key -
getMissingEntries
-
getMissingEntries
-
getMissingEntries
- Returns:
- the missing entries for both equipment and backpack
-
getMissingEntries
- Returns:
- the missing entries for both equipment and backpack
-
getMissingBackpackEntries
-
getMissingBackpackEntries
-
getMissingEquipmentEntries
-
getMissingEquipmentEntries
-
getMissing
Deprecated, for removal: This API element is subject to removal in a future version.UsegetExcessBackpackEntries()
instead. -
getExcessEntries
-
getExcessBackpackEntries
-
getExcessEquipmentEntries
-
getExcessItems
Deprecated, for removal: This API element is subject to removal in a future version.UsegetExcessBackpackEntries()
instead. -
getInvalidItems
-
getInvalidBackpackItems
-
getInvalidEquipmentItems
-
getIrrelevantItems
Deprecated, for removal: This API element is subject to removal in a future version.UsegetInvalidBackpackItems()
instead. -
getValidResults
-
getValidBackpackResults
-
getValidEquipmentResults
-
isInventoryValid
-
isInventoryValid
-
isBackpackValid
default boolean isBackpackValid(boolean strict) -
isBackpackValid
default boolean isBackpackValid() -
isEquipmentValid
default boolean isEquipmentValid(boolean strict) -
isEquipmentValid
default boolean isEquipmentValid() -
isBagged
Deprecated, for removal: This API element is subject to removal in a future version.UseisBackpackValid(boolean)
instead.- Parameters:
strict
-true
to useItemEntry.getQuantity()
for matching quantities,false
to useItemEntry.getMinimumQuantity()
- Returns:
true
if all the items are in the inventory matching the desired quantities
-
isBagged
Deprecated, for removal: This API element is subject to removal in a future version.UseisBackpackValid()
instead. -
withdraw
boolean withdraw()
-