Interface ModuleManager
-
- All Known Subinterfaces:
ClientModuleManager
,ServerModuleManager
public interface ModuleManager
ModuleManager manages all modules
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
changeActiveState(String className, boolean active)
Activates or disables a module.void
deactivateAll()
Disables all modulesList<Module>
getModulesActive()
Returns a view of all active modulesList<Module>
getModulesAll()
Returns a view of all loaded modulesvoid
loadModule(Class<? extends Module> clazz)
void
unloadModule(Class<? extends Module> clazz)
-
-
-
Method Detail
-
loadModule
@RestrictedMethod void loadModule(Class<? extends Module> clazz)
-
unloadModule
@RestrictedMethod void unloadModule(Class<? extends Module> clazz)
-
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
-
-