Interface InventoryLoadout

    • Method Detail

      • getName

        String getName()
        Returns:
        The name of this loadout
      • add

        boolean add​(ItemEntry entry)
        Adds an ItemEntry to the loadout
        Returns:
        true if an item was successfully added to the loadout
      • remove

        ItemEntry remove​(String key)
        Returns:
        The removed entry, or null if no ItemEntry matching the key was present
      • setOutOfItemListener

        void setOutOfItemListener​(Consumer<ItemEntry> outOfItemListener)
      • applyProvidedSetup

        default void applyProvidedSetup​(ItemEntry entry)
        Applies a predefined setup if there is one available for the given ItemEntry's key
      • getMissingEntries

        default List<ItemEntry> getMissingEntries​(boolean strict)
        Returns:
        the missing entries for both equipment and backpack
      • getMissingEntries

        default List<ItemEntry> getMissingEntries()
        Returns:
        the missing entries for both equipment and backpack
      • getMissingBackpackEntries

        default List<ItemEntry> getMissingBackpackEntries​(boolean strict)
      • getMissingBackpackEntries

        default List<ItemEntry> getMissingBackpackEntries()
      • getMissingEquipmentEntries

        default List<ItemEntry> getMissingEquipmentEntries​(boolean strict)
      • getMissingEquipmentEntries

        default List<ItemEntry> getMissingEquipmentEntries()
      • getExcessBackpackEntries

        default List<ItemEntry> getExcessBackpackEntries()
      • getExcessEquipmentEntries

        default List<ItemEntry> getExcessEquipmentEntries()
      • getInvalidBackpackItems

        default List<Item> getInvalidBackpackItems()
      • getInvalidEquipmentItems

        default List<Item> getInvalidEquipmentItems()
      • getValidEquipmentResults

        default ItemQueryResults getValidEquipmentResults()
      • isInventoryValid

        default boolean isInventoryValid​(Inventory inventory,
                                         boolean strict)
      • isInventoryValid

        default boolean isInventoryValid​(Inventory inventory)
      • isBackpackValid

        default boolean isBackpackValid​(boolean strict)
      • isBackpackValid

        default boolean isBackpackValid()
      • isEquipmentValid

        default boolean isEquipmentValid​(boolean strict)
      • isEquipmentValid

        default boolean isEquipmentValid()
      • withdraw

        boolean withdraw()