IOptiGuiApi

public interface IOptiGuiApi(source)

The core OptiGUI API.

Functions

Link copied to clipboard
public abstract void addRetexturableScreen(@NotNull() @NotNull() Class<? extends Screen> screenClass)
Marks the given class and all of its subclasses as retexturable.
Link copied to clipboard
@Nullable()
public abstract @Nullable() IBlockEntityProcessor<@NotNull() T> getBlockEntityProcessor<T extends BlockEntity>(@NotNull() @NotNull() Class<@NotNull() T> type)
Finds the registered block entity processor for the given block entity class.
Link copied to clipboard
@Nullable()
public abstract @Nullable() Identifier getContainerTexture(@NotNull() @NotNull() Identifier container)
Returns the container's inventory screen texture.
Link copied to clipboard
@Nullable()
public abstract @Nullable() IEntityProcessor<@NotNull() T> getEntityProcessor<T extends Entity>(@NotNull() @NotNull() Class<@NotNull() T> type)
Finds the registered entity processor for the given entity class.
Link copied to clipboard
@NotNull()
public static @NotNull() IOptiGuiApi getImplementation()
Returns the implementation of IOptiGuiApi.
Link copied to clipboard
@NotNull()
public abstract @NotNull() String getImplementationModId()
Returns the ID of the mod, which provides OptiGUI implementation.
Link copied to clipboard
@NotNull()
public abstract @NotNull() IInspector getInteractionInspector()
Returns the implementation of {@see IInspector}.
Link copied to clipboard
@NotNull()
public abstract @NotNull() IInteractor getInteractor()
Returns the implementation of {@see IInteractor}.
Link copied to clipboard
public abstract boolean isAvailable()
Tells whether the OptiGUI implementation is loaded or not.
Link copied to clipboard
public abstract boolean isScreenRetexturable(@NotNull() @NotNull() Screen screen)
Returns if the screen's texture is allowed to be changed.