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
abstract fun warn(@NotNull resource: @NotNull Identifier, @NotNull message: @NotNull String)
Logs a warning caused by a resource (for example, it is malformed).

Inherited functions

Link copied to clipboard
abstract fun close()