Class Bootstrap

java.lang.Object
net.minheur.potoflux.Bootstrap

public class Bootstrap extends Object
  • Field Details

  • Constructor Details

    • Bootstrap

      public Bootstrap()
  • Method Details

    • bootstrap

      public static void bootstrap(Consumer<String> updateText, String[] args)
      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 screen
      args - args given on app startup