Class IdentifierSearchProvider<T>

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

@Environment(CLIENT) public class IdentifierSearchProvider<T> extends Object implements ReloadableSearchProvider<T>
Mappings:
Namespace Name
official fld
intermediary net/minecraft/class_1121
named net/minecraft/client/search/IdentifierSearchProvider
  • Field Details

    • lastIndexComparator

      protected final Comparator<T> lastIndexComparator
      Mappings:
      Namespace Name Mixin selector
      official a Lfld;a:Ljava/util/Comparator;
      intermediary field_39199 Lnet/minecraft/class_1121;field_39199:Ljava/util/Comparator;
      named lastIndexComparator Lnet/minecraft/client/search/IdentifierSearchProvider;lastIndexComparator:Ljava/util/Comparator;
    • idSearcher

      protected final IdentifierSearcher<T> idSearcher
      Mappings:
      Namespace Name Mixin selector
      official b Lfld;b:Lfli;
      intermediary field_39200 Lnet/minecraft/class_1121;field_39200:Lnet/minecraft/class_7455;
      named idSearcher Lnet/minecraft/client/search/IdentifierSearchProvider;idSearcher:Lnet/minecraft/client/search/IdentifierSearcher;
  • Constructor Details

    • IdentifierSearchProvider

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

    • findAll

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

      protected List<T> search(String text)
      Mappings:
      Namespace Name Mixin selector
      official a Lfld;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)
      Mappings:
      Namespace Name Mixin selector
      official a Lfld;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;