ISelector

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
abstract fun createFilter(selector: String): IFilter<Interaction, *>?

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

Link copied to clipboard
abstract fun getRawSelector(interaction: Interaction): String?

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.