SearchProvider

class SearchProvider(config: Any, content: Any, prefix: String, client: Boolean) : Function<String, List<Translatable.Result>>

A built-in searcher function that builds a searcher by reflectively walking the provided content, mapping text Translatable.Result from each member within

Author

fzzyhmstrs

Since

0.6.8

Parameters

config

The parent config object. If this is a child of a child, the config will be its parent's parent (always the main config object)

content

The entry to walk and search from. Typically, a Config, Section, or Walkable

prefix

The scope of the content

client

Whether the config is client-only or not

Constructors

Link copied to clipboard
constructor(config: Any, content: Any, prefix: String, client: Boolean)

Functions

Link copied to clipboard
open fun <V : Any> andThen(p0: Function<in List<Translatable.Result>, out V>): Function<String, V>
Link copied to clipboard
open override fun apply(t: String): List<Translatable.Result>
Link copied to clipboard
open fun <V : Any> compose(p0: Function<in V, out String>): Function<V, List<Translatable.Result>>