ISelector

public interface ISelector(source)

Represents a selector, which creates filters from their text descriptions, when resources are (re)loaded (when the game starts, the user changes resource packs, or presses F3+T).

Each filter accepts an interaction, processes it, and returns a result if a texture should be replaced, and if yes, provides a replacement texture.

See also

Functions

Link copied to clipboard
public abstract IFilter<Interaction, ?> createFilter(String selector)

Parses the given selector and creates a filter from it, if possible.

Link copied to clipboard
public abstract String getRawSelector(Interaction interaction)

Gets the raw selector from the given interaction, which may be parsed by createFilter or null, if the selector is not available in the given interaction.