addFilter
abstract fun addFilter(@NotNull resource: @NotNull Identifier, @NotNull filter: @NotNull IFilter<Interaction, Identifier>, @NotNull replaceableTextures: @NotNull Set<Identifier>, priority: Int)(source)
Adds a filter to the OptiGUI filter chain.
Parameters
resource
The resource the filter was created from, useful for OptiGUI or resource pack debugging
filter
The filter to add
replaceableTextures
The textures the filter can replace
priority
The priority of the filter. Filters with higher priorities will be processed first.
open fun addFilter(@NotNull resource: @NotNull Identifier, @NotNull filter: @NotNull IFilter<Interaction, Identifier>, @NotNull replaceableTextures: @NotNull Set<Identifier>)(source)
Adds a filter to the OptiGUI filter chain with default (0
) priority.
Parameters
resource
The resource the filter was created from, useful for OptiGUI or resource pack debugging
filter
The filter to add
replaceableTextures
The textures the filter can replace