@Environment(value=CLIENT) public class SearchManager extends Object implements SynchronousResourceReloadListener
Modifier and Type | Class and Description |
---|---|
static class |
SearchManager.Key<T> |
ResourceReloadListener.Synchronizer
Modifier and Type | Field and Description |
---|---|
private Map<SearchManager.Key<?>,SearchableContainer<?>> |
instances |
static SearchManager.Key<ItemStack> |
ITEM_TAG |
static SearchManager.Key<ItemStack> |
ITEM_TOOLTIP |
static SearchManager.Key<RecipeResultCollection> |
RECIPE_OUTPUT |
Constructor and Description |
---|
SearchManager() |
Modifier and Type | Method and Description |
---|---|
void |
apply(ResourceManager manager) |
<T> SearchableContainer<T> |
get(SearchManager.Key<T> key) |
<T> void |
put(SearchManager.Key<T> key,
SearchableContainer<T> value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reload
getName
public static final SearchManager.Key<ItemStack> ITEM_TOOLTIP
public static final SearchManager.Key<ItemStack> ITEM_TAG
public static final SearchManager.Key<RecipeResultCollection> RECIPE_OUTPUT
private final Map<SearchManager.Key<?>,SearchableContainer<?>> instances
public void apply(ResourceManager manager)
apply
in interface SynchronousResourceReloadListener
public <T> void put(SearchManager.Key<T> key, SearchableContainer<T> value)
public <T> SearchableContainer<T> get(SearchManager.Key<T> key)