Class ModuleManager

java.lang.Object
dev.boze.api.client.ModuleManager

public final class ModuleManager extends Object
ModuleManager provides a way to interact with Boze modules
  • Constructor Details

    • ModuleManager

      public ModuleManager()
  • Method Details

    • getState

      public static boolean getState(String name) throws ClientModuleNotFoundException
      Get the state of a module
      Parameters:
      name - The name of the module to get the state of
      Returns:
      The state of the module
      Throws:
      ClientModuleNotFoundException - If the module is not found
    • setState

      public static void setState(String name, boolean state) throws ClientModuleNotFoundException
      Set the state of a module
      Parameters:
      name - The name of the module to set the state of
      state - The state to set the module to
      Throws:
      ClientModuleNotFoundException - If the module is not found
    • getModule

      public static BaseModule getModule(String name)
      Parameters:
      name - The name of the module to get
      Returns:
      The module
    • getModules

      public static List<BaseModule> getModules()
      Returns:
      A list of all modules
    • getAddonModule

      public static AddonModule getAddonModule(String name)
      Parameters:
      name - The name of the addon module to get
      Returns:
      The addon module
    • getAddonModules

      public static List<AddonModule> getAddonModules()
      Returns:
      A list of all addon modules
    • getClientModule

      public static ClientModule getClientModule(String name)
      Parameters:
      name - The name of the client module to get
      Returns:
      The client module
    • getClientModules

      public static List<ClientModule> getClientModules()
      Returns:
      A list of all client modules