Interface MenuLauncher
-
public interface MenuLauncherThe menu launcher launches MenuLaunchEntry configurations defined in ModDefinition (mod.xml). A MenuLaunchEntry configurations usually sets up the client to activate and display certain modules and generally sets up the ui. There can be configurations overwriting the existing state of the client UI, e.g. for launching game modes, or specific to launch a certain module (e.g. file selection dialog)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidboot()Resets the client and boots the main menu.StringgetLastLaunched()Returns the name of the last launched MenuLaunchEntry.voidlaunch(String name)Launches a named MenuLaunchEntry configuration
-
-
-
Method Detail
-
launch
void launch(String name)
Launches a named MenuLaunchEntry configuration
-
boot
void boot()
Resets the client and boots the main menu. Can also be used to exit a game mode to main menu.
-
getLastLaunched
String getLastLaunched()
Returns the name of the last launched MenuLaunchEntry. Can be useful to identify which entry was selected in main menu.
-
-