Interface MultiversionUi.Runtime
- Enclosing class:
MultiversionUi
public static interface MultiversionUi.Runtime
What
MultiversionUi needs from the library's runtime (core, which implements it): the part that
knows the running game and its backend. Found by class name at first use, so this API jar has no dependency on
the runtime. Not for mods. The default methods describe the runtime without a backend (unit tests, an
unsupported version): nothing is shown and nothing fails.-
Method Summary
Modifier and TypeMethodDescriptiondefault ObjectmenuScreen(ScreenFactory menu, Object parent) UiBackend.menuScreen(ScreenFactory, Object)of the running backend.default voidregistered(MultiversionUi.Registration registration) registrationwas just added toMultiversionUi.menus(); called on the registering thread.default booleanUiBackend.applyRestoredOptions()of the running backend.
-
Method Details
-
registered
registrationwas just added toMultiversionUi.menus(); called on the registering thread. The runtime starts its backend on the first call and registers the mod list's config screen where the loader supports it.- Parameters:
registration- the menu that was just added toMultiversionUi.menus()
-
reloadGameOptions
default boolean reloadGameOptions()UiBackend.applyRestoredOptions()of the running backend.- Returns:
falsewithout a backend
-