Package net.minecraft.client.util
Class SearchTreeReloadable<T>
- java.lang.Object
-
- net.minecraft.client.util.SearchTreeReloadable<T>
-
- All Implemented Interfaces:
IMutableSearchTree<T>
,ISearchTree<T>
- Direct Known Subclasses:
SearchTree
public class SearchTreeReloadable<T> extends java.lang.Object implements IMutableSearchTree<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchTreeReloadable.JoinedIterator<T>
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<T>
contents
private java.util.function.Function<T,java.util.stream.Stream<ResourceLocation>>
idGetter
protected SuffixArray<T>
namespaceTree
private it.unimi.dsi.fastutil.objects.Object2IntMap<T>
orderT
protected SuffixArray<T>
pathTree
-
Constructor Summary
Constructors Constructor Description SearchTreeReloadable(java.util.function.Function<T,java.util.stream.Stream<ResourceLocation>> p_i50896_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T p_217872_1_)
void
clear()
protected int
comparePosition(T p_217874_1_, T p_217874_2_)
protected void
index(T p_194042_1_)
void
refresh()
java.util.List<T>
search(java.lang.String p_194038_1_)
-
-
-
Field Detail
-
namespaceTree
protected SuffixArray<T> namespaceTree
-
pathTree
protected SuffixArray<T> pathTree
-
idGetter
private final java.util.function.Function<T,java.util.stream.Stream<ResourceLocation>> idGetter
-
contents
private final java.util.List<T> contents
-
orderT
private final it.unimi.dsi.fastutil.objects.Object2IntMap<T> orderT
-
-
Constructor Detail
-
SearchTreeReloadable
public SearchTreeReloadable(java.util.function.Function<T,java.util.stream.Stream<ResourceLocation>> p_i50896_1_)
-
-
Method Detail
-
refresh
public void refresh()
- Specified by:
refresh
in interfaceIMutableSearchTree<T>
-
add
public void add(T p_217872_1_)
- Specified by:
add
in interfaceIMutableSearchTree<T>
-
clear
public void clear()
- Specified by:
clear
in interfaceIMutableSearchTree<T>
-
index
protected void index(T p_194042_1_)
-
search
public java.util.List<T> search(java.lang.String p_194038_1_)
- Specified by:
search
in interfaceISearchTree<T>
-
-