Class ListFinder

java.lang.Object
ListFinder

public class ListFinder extends Object
Exports a list of inputted items with the best teleport locations. Works by grouping together teleports in the list. Used on its own.
See Also:
  • Constructor Details

    • ListFinder

      public ListFinder()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      Input list items grouped by zone, with each item only occurring once. If an item occurs in a zone with many items, it will be deleted from the rest of the zones.
    • addItem

      public void addItem(String searchKey)
      Adds a search key to global list calledItems to return using findItem.essentialFindAllClosestAsMap.
      Parameters:
      searchKey - item user is looking for. WIll be queued up to find.
      See Also:
    • addItem

      public void addItem(String[] items)
      Bulk call several items (Mainly used for testing)
      Parameters:
      items - Array input of items a user is looking for
    • clearQueries

      public void clearQueries()
      Clears all internal containers.
    • deleteElement

      public void deleteElement()
      Delete an item previously searched for.