Package net.minecraft.client.util
Class SearchTree<T>
- java.lang.Object
-
- net.minecraft.client.util.SearchTreeReloadable<T>
-
- net.minecraft.client.util.SearchTree<T>
-
- All Implemented Interfaces:
IMutableSearchTree<T>
,ISearchTree<T>
public class SearchTree<T> extends SearchTreeReloadable<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SearchTree.MergingIterator<T>
-
Nested classes/interfaces inherited from class net.minecraft.client.util.SearchTreeReloadable
SearchTreeReloadable.JoinedIterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Function<T,java.util.stream.Stream<java.lang.String>>
filler
protected SuffixArray<T>
tree
-
Fields inherited from class net.minecraft.client.util.SearchTreeReloadable
namespaceTree, pathTree
-
-
Constructor Summary
Constructors Constructor Description SearchTree(java.util.function.Function<T,java.util.stream.Stream<java.lang.String>> p_i47612_1_, java.util.function.Function<T,java.util.stream.Stream<ResourceLocation>> p_i47612_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
index(T p_194042_1_)
void
refresh()
java.util.List<T>
search(java.lang.String p_194038_1_)
-
Methods inherited from class net.minecraft.client.util.SearchTreeReloadable
add, clear, comparePosition
-
-
-
-
Field Detail
-
tree
protected SuffixArray<T> tree
-
filler
private final java.util.function.Function<T,java.util.stream.Stream<java.lang.String>> filler
-
-
Constructor Detail
-
SearchTree
public SearchTree(java.util.function.Function<T,java.util.stream.Stream<java.lang.String>> p_i47612_1_, java.util.function.Function<T,java.util.stream.Stream<ResourceLocation>> p_i47612_2_)
-
-
Method Detail
-
refresh
public void refresh()
- Specified by:
refresh
in interfaceIMutableSearchTree<T>
- Overrides:
refresh
in classSearchTreeReloadable<T>
-
index
protected void index(T p_194042_1_)
- Overrides:
index
in classSearchTreeReloadable<T>
-
search
public java.util.List<T> search(java.lang.String p_194038_1_)
- Specified by:
search
in interfaceISearchTree<T>
- Overrides:
search
in classSearchTreeReloadable<T>
-
-