ILoadTimeSelector

Interface defining a load time OptiGUI INI selector. A load time selector runs when loading the resource, in contrast to when replacing a texture. It is a filter, which decides whether the filter should be loaded or not. A load time selector accepts the selector value in evaluate, and returns a result indicating whether the resource should be loaded. The result passed to match is ignored, it may be anything (Java doesn't have a unit type). To register a load time selector, see opekope2.optigui.annotation.Selector documentation. The name of the entrypoint is optigui-load-selector.

See also

Inherited functions

Link copied to clipboard
@NotNull
open fun createTree(): @NotNull Tree.Node
Link copied to clipboard
@NotNull
abstract fun evaluate(value: T): @NotNull IFilter.Result<out TResult>
Evaluates the filter with the given value.