Package net.minecraft.client.search
Interface TextSearcher<T>
A functional interface that allows searching with a text.
- Mappings:
 Namespace Name official fyhintermediary net/minecraft/class_7454named net/minecraft/client/search/TextSearcher
- 
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TextSearcher<T>of()Returns a searcher that always returns no results.static <T> TextSearcher<T>Returns a searcher that searches fromvalues.Returns the results of searching with the providedtext. 
- 
Method Details
- 
of
Returns a searcher that always returns no results.- Returns:
 - a searcher that always returns no results
 - Mappings:
 Namespace Name Mixin selector official aLfyh;a()Lfyh;intermediary method_43793Lnet/minecraft/class_7454;method_43793()Lnet/minecraft/class_7454;named ofLnet/minecraft/client/search/TextSearcher;of()Lnet/minecraft/client/search/TextSearcher;
 - 
of
Returns a searcher that searches fromvalues.- Parameters:
 textsGetter- a function that, when given a value fromvalues, returns a stream of search texts associated with the value- Returns:
 - a searcher that searches from 
values - Mappings:
 Namespace Name Mixin selector official aLfyh;a(Ljava/util/List;Ljava/util/function/Function;)Lfyh;intermediary method_43796Lnet/minecraft/class_7454;method_43796(Ljava/util/List;Ljava/util/function/Function;)Lnet/minecraft/class_7454;named ofLnet/minecraft/client/search/TextSearcher;of(Ljava/util/List;Ljava/util/function/Function;)Lnet/minecraft/client/search/TextSearcher;
 - 
search
Returns the results of searching with the providedtext.- Returns:
 - the results of searching with the provided 
text - Mappings:
 Namespace Name Mixin selector official searchLfyh;search(Ljava/lang/String;)Ljava/util/List;intermediary searchLnet/minecraft/class_7454;search(Ljava/lang/String;)Ljava/util/List;named searchLnet/minecraft/client/search/TextSearcher;search(Ljava/lang/String;)Ljava/util/List;
 
 -