ILoadTimeSelector

public interface ILoadTimeSelector implements IFilter<T, TResult>(source)

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()
public @NotNull() Tree.Node createTree()
Link copied to clipboard
@NotNull()
public abstract @NotNull() IFilter.Result<? extends TResult> evaluate(T value)
Evaluates the filter with the given value.