Class ModuleHelper

java.lang.Object
dev.boze.api.module.ModuleHelper

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

    • ModuleHelper

      public ModuleHelper()
  • Method Details

    • getState

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

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