Interface SearchProvider<T>

All Known Implementing Classes:
IdentifierSearchProvider, TextSearchProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Environment(CLIENT) public interface SearchProvider<T>
A functional interface that provides searching.
Mappings:
Namespace Name
named net/minecraft/client/search/SearchProvider
intermediary net/minecraft/class_1129
official gud
  • Method Details

    • empty

      static <T> SearchProvider<T> empty()
    • plainText

      static <T> SearchProvider<T> plainText(List<T> list, Function<T,Stream<String>> function)
    • findAll

      List<T> findAll(String text)
      Returns the search result of text.
      Returns:
      the search result of text
      Mappings:
      Namespace Name Mixin selector
      named findAll Lnet/minecraft/client/search/SearchProvider;findAll(Ljava/lang/String;)Ljava/util/List;
      intermediary method_4810 Lnet/minecraft/class_1129;method_4810(Ljava/lang/String;)Ljava/util/List;
      official search Lgud;search(Ljava/lang/String;)Ljava/util/List;