Class IdentifierSearchProvider<T>

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

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

    • lastIndexComparator

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

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

    • IdentifierSearchProvider

      public IdentifierSearchProvider(Function<T,Stream<Identifier>> identifiersGetter, List<T> values)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/search/IdentifierSearchProvider;<init>(Ljava/util/function/Function;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_1121;<init>(Ljava/util/function/Function;Ljava/util/List;)V
      official <init> Lgtk;<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
      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 Lgto;search(Ljava/lang/String;)Ljava/util/List;
    • search

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

      protected List<T> search(String namespace, String path)
      Mappings:
      Namespace Name Mixin selector
      named search Lnet/minecraft/client/search/IdentifierSearchProvider;search(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;
      official a Lgtk;a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;