Class TextSearchProvider<T>

java.lang.Object
net.minecraft.client.search.IdentifierSearchProvider<T>
net.minecraft.client.search.TextSearchProvider<T>
All Implemented Interfaces:
ReloadableSearchProvider<T>, SearchProvider<T>

@Environment(CLIENT) public class TextSearchProvider<T> extends IdentifierSearchProvider<T>
Mappings:
Namespace Name
official fyd
intermediary net/minecraft/class_1126
named net/minecraft/client/search/TextSearchProvider
  • Field Details

    • values

      private final List<T> values
      Mappings:
      Namespace Name Mixin selector
      official c Lfyd;c:Ljava/util/List;
      intermediary field_39197 Lnet/minecraft/class_1126;field_39197:Ljava/util/List;
      named values Lnet/minecraft/client/search/TextSearchProvider;values:Ljava/util/List;
    • textsGetter

      private final Function<T,Stream<String>> textsGetter
      Mappings:
      Namespace Name Mixin selector
      official d Lfyd;d:Ljava/util/function/Function;
      intermediary field_5497 Lnet/minecraft/class_1126;field_5497:Ljava/util/function/Function;
      named textsGetter Lnet/minecraft/client/search/TextSearchProvider;textsGetter:Ljava/util/function/Function;
    • textSearcher

      private TextSearcher<T> textSearcher
      Mappings:
      Namespace Name Mixin selector
      official e Lfyd;e:Lfyh;
      intermediary field_39198 Lnet/minecraft/class_1126;field_39198:Lnet/minecraft/class_7454;
      named textSearcher Lnet/minecraft/client/search/TextSearchProvider;textSearcher:Lnet/minecraft/client/search/TextSearcher;
  • Constructor Details

    • TextSearchProvider

      public TextSearchProvider(Function<T,Stream<String>> textsGetter, Function<T,Stream<Identifier>> identifiersGetter, List<T> values)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfyd;<init>(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_1126;<init>(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/List;)V
      named <init> Lnet/minecraft/client/search/TextSearchProvider;<init>(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/List;)V
  • Method Details

    • reload

      public void reload()
      Reloads the search provider.
      Mappings:
      Namespace Name Mixin selector
      official a Lfyi;a()V
      intermediary method_4799 Lnet/minecraft/class_1123;method_4799()V
      named reload Lnet/minecraft/client/search/ReloadableSearchProvider;reload()V
    • search

      protected List<T> search(String text)
      Overrides:
      search in class IdentifierSearchProvider<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lfye;a(Ljava/lang/String;)Ljava/util/List;
      intermediary method_43791 Lnet/minecraft/class_1121;method_43791(Ljava/lang/String;)Ljava/util/List;
      named search Lnet/minecraft/client/search/IdentifierSearchProvider;search(Ljava/lang/String;)Ljava/util/List;
    • search

      protected List<T> search(String namespace, String path)
      Overrides:
      search in class IdentifierSearchProvider<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lfye;a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;
      intermediary method_43792 Lnet/minecraft/class_1121;method_43792(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;
      named search Lnet/minecraft/client/search/IdentifierSearchProvider;search(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;