IOptiGuiExtension
OptiGUI extension for IResourceLoadingSession. Can be obtained with getExtension, where modId
is optigui
. Recommended way of obtaining an instance is in createResourceLoader, and the session extension instance should be passed to the created IResourceLoader.
Functions
Link copied to clipboard
open fun addFilter(@NotNull resource: @NotNull Identifier, @NotNull filter: @NotNull IFilter<Interaction, Identifier>, @NotNull replaceableTextures: @NotNull Set<Identifier>)
Adds a filter to the OptiGUI filter chain with default (
0
) priority.abstract fun addFilter(@NotNull resource: @NotNull Identifier, @NotNull filter: @NotNull IFilter<Interaction, Identifier>, @NotNull replaceableTextures: @NotNull Set<Identifier>, priority: Int)
Adds a filter to the OptiGUI filter chain.
Link copied to clipboard
Logs a warning caused by a resource (for example, it is malformed).