Package net.minecraft.client.util
Class SearchTreeManager
- java.lang.Object
-
- net.minecraft.client.util.SearchTreeManager
-
- All Implemented Interfaces:
IFutureReloadListener
,IResourceManagerReloadListener
public class SearchTreeManager extends java.lang.Object implements IResourceManagerReloadListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchTreeManager.Key<T>
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description static SearchTreeManager.Key<ItemStack>
CREATIVE_NAMES
static SearchTreeManager.Key<ItemStack>
CREATIVE_TAGS
static SearchTreeManager.Key<RecipeList>
RECIPE_COLLECTIONS
private java.util.Map<SearchTreeManager.Key<?>,IMutableSearchTree<?>>
searchTrees
-
Constructor Summary
Constructors Constructor Description SearchTreeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IResourceType
getResourceType()
<T> IMutableSearchTree<T>
getTree(SearchTreeManager.Key<T> p_215358_1_)
void
onResourceManagerReload(IResourceManager p_195410_1_)
<T> void
register(SearchTreeManager.Key<T> p_215357_1_, IMutableSearchTree<T> p_215357_2_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
Methods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
reload
-
-
-
-
Field Detail
-
CREATIVE_NAMES
public static final SearchTreeManager.Key<ItemStack> CREATIVE_NAMES
-
CREATIVE_TAGS
public static final SearchTreeManager.Key<ItemStack> CREATIVE_TAGS
-
RECIPE_COLLECTIONS
public static final SearchTreeManager.Key<RecipeList> RECIPE_COLLECTIONS
-
searchTrees
private final java.util.Map<SearchTreeManager.Key<?>,IMutableSearchTree<?>> searchTrees
-
-
Method Detail
-
onResourceManagerReload
public void onResourceManagerReload(IResourceManager p_195410_1_)
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
-
register
public <T> void register(SearchTreeManager.Key<T> p_215357_1_, IMutableSearchTree<T> p_215357_2_)
-
getTree
public <T> IMutableSearchTree<T> getTree(SearchTreeManager.Key<T> p_215358_1_)
-
getResourceType
public IResourceType getResourceType()
- Specified by:
getResourceType
in interfaceIResourceManagerReloadListener
-
-