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
named net/minecraft/client/search/ReloadableSearchProvider
intermediary net/minecraft/class_1123
official gsy
  • 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
      named empty Lnet/minecraft/client/search/ReloadableSearchProvider;empty()Lnet/minecraft/client/search/ReloadableSearchProvider;
      intermediary method_43798 Lnet/minecraft/class_1123;method_43798()Lnet/minecraft/class_1123;
      official b Lgsy;b()Lgsy;
    • 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
      named reload Lnet/minecraft/client/search/ReloadableSearchProvider;reload()V
      intermediary method_4799 Lnet/minecraft/class_1123;method_4799()V
      official a Lgsy;a()V