Package net.minheur.potoflux
Class Bootstrap
java.lang.Object
net.minheur.potoflux.Bootstrap
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegisterCommandsEventstatic final RegisterLangEventstatic final RegisterMenuEventstatic final RegisterModEventsEventstatic final RegisterNotifTypesEventstatic final RegisterRunsEventstatic final RegisterSettingEventstatic final RegisterStylesheetsEventstatic final RegisterTabsEvent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidIt will first check for args, then enable devEnv if args contains it.
We then get version and log it, load all optionalFeatures, set the theme and set the loaded translations.
We get the loading bus, register all into it then list and load mods.
We post all events to the bus, and invoke the app.
-
Field Details
-
langEvent
-
tabEvent
-
commandEvent
-
runEvent
-
settingEvent
-
notificationTypesEvent
-
stylesheetsEvent
-
modEventsEvent
-
-
Constructor Details
-
Bootstrap
public Bootstrap()
-
-
Method Details
-
bootstrap
It will first check for args, then enable devEnv if args contains it.
We then get version and log it, load all optionalFeatures, set the theme and set the loaded translations.
We get the loading bus, register all into it then list and load mods.
We post all events to the bus, and invoke the app.- Parameters:
updateText- consumer that allows to change the text of the loading screenargs- args given on app startup
-