Class IdentifierSearchableContainer<T>

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

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

    • byNamespace

      protected SuffixArray<T> byNamespace
      Mappings:
      Namespace Name Mixin selector
      official a Lfai;a:Lfam;
      intermediary field_5489 Lnet/minecraft/class_1121;field_5489:Lnet/minecraft/class_1128;
      named byNamespace Lnet/minecraft/client/search/IdentifierSearchableContainer;byNamespace:Lnet/minecraft/client/search/SuffixArray;
    • byPath

      protected SuffixArray<T> byPath
      Mappings:
      Namespace Name Mixin selector
      official b Lfai;b:Lfam;
      intermediary field_5485 Lnet/minecraft/class_1121;field_5485:Lnet/minecraft/class_1128;
      named byPath Lnet/minecraft/client/search/IdentifierSearchableContainer;byPath:Lnet/minecraft/client/search/SuffixArray;
    • identifierFinder

      private final Function<T,​Stream<Identifier>> identifierFinder
      Mappings:
      Namespace Name Mixin selector
      official c Lfai;c:Ljava/util/function/Function;
      intermediary field_5487 Lnet/minecraft/class_1121;field_5487:Ljava/util/function/Function;
      named identifierFinder Lnet/minecraft/client/search/IdentifierSearchableContainer;identifierFinder:Ljava/util/function/Function;
    • entries

      private final List<T> entries
      Mappings:
      Namespace Name Mixin selector
      official d Lfai;d:Ljava/util/List;
      intermediary field_5486 Lnet/minecraft/class_1121;field_5486:Ljava/util/List;
      named entries Lnet/minecraft/client/search/IdentifierSearchableContainer;entries:Ljava/util/List;
    • entryIds

      private final Object2IntMap<T> entryIds
      Mappings:
      Namespace Name Mixin selector
      official e Lfai;e:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      intermediary field_5488 Lnet/minecraft/class_1121;field_5488:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      named entryIds Lnet/minecraft/client/search/IdentifierSearchableContainer;entryIds:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
  • Constructor Details

  • Method Details

    • reload

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

      public void add(T t)
      Specified by:
      add in interface SearchableContainer<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lfah;a(Ljava/lang/Object;)V
      intermediary method_4798 Lnet/minecraft/class_1123;method_4798(Ljava/lang/Object;)V
      named add Lnet/minecraft/client/search/SearchableContainer;add(Ljava/lang/Object;)V
    • clear

      public void clear()
      Specified by:
      clear in interface SearchableContainer<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lfah;a()V
      intermediary method_4797 Lnet/minecraft/class_1123;method_4797()V
      named clear Lnet/minecraft/client/search/SearchableContainer;clear()V
    • index

      protected void index(T t)
      Mappings:
      Namespace Name Mixin selector
      official b Lfai;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
    • compare

      protected int compare(T object1, T object2)
      Mappings:
      Namespace Name Mixin selector
      official a Lfai;a(Ljava/lang/Object;Ljava/lang/Object;)I
      intermediary method_4796 Lnet/minecraft/class_1121;method_4796(Ljava/lang/Object;Ljava/lang/Object;)I
      named compare Lnet/minecraft/client/search/IdentifierSearchableContainer;compare(Ljava/lang/Object;Ljava/lang/Object;)I
    • findAll

      public List<T> findAll(String text)
      Specified by:
      findAll in interface Searchable<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lfal;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;