IOptiGuiExtension

public interface IOptiGuiExtension implements AutoCloseable(source)

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
public void addFilter(@NotNull() @NotNull() Identifier resource, @NotNull() @NotNull() IFilter<Interaction, Identifier> filter, @NotNull() @NotNull() Set<Identifier> replaceableTextures)
Adds a filter to the OptiGUI filter chain with default (0) priority.
public abstract void addFilter(@NotNull() @NotNull() Identifier resource, @NotNull() @NotNull() IFilter<Interaction, Identifier> filter, @NotNull() @NotNull() Set<Identifier> replaceableTextures, int priority)
Adds a filter to the OptiGUI filter chain.
Link copied to clipboard
public abstract void warn(@NotNull() @NotNull() Identifier resource, @NotNull() @NotNull() String message)
Logs a warning caused by a resource (for example, it is malformed).

Inherited functions

Link copied to clipboard
public abstract void close()