Class TextSearchableContainer<T>

java.lang.Object
net.minecraft.client.search.IdentifierSearchableContainer<T>
net.minecraft.client.search.TextSearchableContainer<T>
All Implemented Interfaces:
Searchable<T>, SearchableContainer<T>

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

    • byText

      protected SuffixArray<T> byText
      Mappings:
      Namespace Name Mixin selector
      official c Lfcp;c:Lfcs;
      intermediary field_5498 Lnet/minecraft/class_1126;field_5498:Lnet/minecraft/class_1128;
      named byText Lnet/minecraft/client/search/TextSearchableContainer;byText:Lnet/minecraft/client/search/SuffixArray;
    • textFinder

      private final Function<T,Stream<String>> textFinder
      Mappings:
      Namespace Name Mixin selector
      official d Lfcp;d:Ljava/util/function/Function;
      intermediary field_5497 Lnet/minecraft/class_1126;field_5497:Ljava/util/function/Function;
      named textFinder Lnet/minecraft/client/search/TextSearchableContainer;textFinder:Ljava/util/function/Function;
  • Constructor Details

    • TextSearchableContainer

      public TextSearchableContainer(Function<T,Stream<String>> textFinder, Function<T,Stream<Identifier>> identifierFinder)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfcp;<init>(Ljava/util/function/Function;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_1126;<init>(Ljava/util/function/Function;Ljava/util/function/Function;)V
      named <init> Lnet/minecraft/client/search/TextSearchableContainer;<init>(Ljava/util/function/Function;Ljava/util/function/Function;)V
  • Method Details

    • reload

      public void reload()
      Specified by:
      reload in interface SearchableContainer<T>
      Overrides:
      reload in class IdentifierSearchableContainer<T>
      Mappings:
      Namespace Name Mixin selector
      official b Lfcn;b()V
      intermediary method_4799 Lnet/minecraft/class_1123;method_4799()V
      named reload Lnet/minecraft/client/search/SearchableContainer;reload()V
    • index

      protected void index(T t)
      Overrides:
      index in class IdentifierSearchableContainer<T>
      Mappings:
      Namespace Name Mixin selector
      official b Lfco;b(Ljava/lang/Object;)V
      intermediary method_4795 Lnet/minecraft/class_1121;method_4795(Ljava/lang/Object;)V
      named index Lnet/minecraft/client/search/IdentifierSearchableContainer;index(Ljava/lang/Object;)V
    • findAll

      public List<T> findAll(String text)
      Specified by:
      findAll in interface Searchable<T>
      Overrides:
      findAll in class IdentifierSearchableContainer<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lfcr;a(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/Searchable;findAll(Ljava/lang/String;)Ljava/util/List;