Class IdSearchTree<T>

java.lang.Object
net.minecraft.client.searchtree.IdSearchTree<T>
All Implemented Interfaces:
SearchTree<T>
Direct Known Subclasses:
FullTextSearchTree

public class IdSearchTree<T> extends Object implements SearchTree<T>
  • Field Details

  • Constructor Details

  • Method Details

    • search

      public List<T> search(String pQuery)
      Searches this search tree for the given text.

      If the query does not contain a :, then only

      invalid reference
      #byName
      is searched. If it does contain a colon, both
      invalid reference
      #byName
      and
      invalid reference
      #byId
      are searched and the results are merged using a
      invalid reference
      MergingIterator
      .
      Specified by:
      search in interface SearchTree<T>
      Returns:
      A list of all matching items in this search tree.
    • searchPlainText

      protected List<T> searchPlainText(String pQuery)
    • searchResourceLocation

      protected List<T> searchResourceLocation(String pNamespace, String pPath)