Interface ReloadableSearchProvider<T>

All Superinterfaces:
SearchProvider<T>
All Known Implementing Classes:
IdentifierSearchProvider, TextSearchProvider

@Environment(CLIENT) public interface ReloadableSearchProvider<T> extends SearchProvider<T>
A functional interface that provides searching and can be reloaded.
Mappings:
Namespace Name
official fyi
intermediary net/minecraft/class_1123
named net/minecraft/client/search/ReloadableSearchProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a search provider that always returns no results.
    default void
    Reloads the search provider.

    Methods inherited from interface net.minecraft.client.search.SearchProvider

    findAll
  • Method Details

    • empty

      static <T> ReloadableSearchProvider<T> empty()
      Returns a search provider that always returns no results.
      Returns:
      a search provider that always returns no results
      Mappings:
      Namespace Name Mixin selector
      official b Lfyi;b()Lfyi;
      intermediary method_43798 Lnet/minecraft/class_1123;method_43798()Lnet/minecraft/class_1123;
      named empty Lnet/minecraft/client/search/ReloadableSearchProvider;empty()Lnet/minecraft/client/search/ReloadableSearchProvider;
    • reload

      default void reload()
      Reloads the search provider.
      API Note:
      Implementations must supply the context (e.g. the new data) separately, for example by having a getter as a field on an implementing class.
      Mappings:
      Namespace Name Mixin selector
      official a Lfyi;a()V
      intermediary method_4799 Lnet/minecraft/class_1123;method_4799()V
      named reload Lnet/minecraft/client/search/ReloadableSearchProvider;reload()V