Interface ModuleManager

    • Method Detail

      • getModulesAll

        List<Module> getModulesAll()
        Returns a view of all loaded modules
      • getModulesActive

        List<Module> getModulesActive()
        Returns a view of all active modules
      • changeActiveState

        void changeActiveState​(String className,
                               boolean active)
        Activates or disables a module. If you want to activate a core module, consider using MenuLauncher instead - there are launchers for all common modules like displaying storage, ship selection, etc
        Parameters:
        className - Modules are identified by their full class name. This is necessary to avoid issues with missing dependencies (e.g. activating core modules from groovy scripts). Example: de.extio.spacecraft.mod.game_core.client.module.ui.ingame.status.StatusClientModule
      • deactivateAll

        void deactivateAll()
        Disables all modules