addRetexturableScreen

abstract fun addRetexturableScreen(@NotNull screenClass: @NotNull Class<out Screen>)(source)

Marks the given class and all of its subclasses as retexturable. That is, OptiGUI is allowed to replace its texture. Only add screens your mod created, and avoid adding Screen for performance reasons.

Parameters

screenClass

The screen class to mark as retexturable

See also