addFilter
public abstract void addFilter(@NotNull() @NotNull() Identifier resource, @NotNull() @NotNull() IFilter<Interaction, Identifier> filter, @NotNull() @NotNull() Set<Identifier> replaceableTextures, int priority)(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.
public void addFilter(@NotNull() @NotNull() Identifier resource, @NotNull() @NotNull() IFilter<Interaction, Identifier> filter, @NotNull() @NotNull() Set<Identifier> replaceableTextures)(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