Class EventToggleAddonModule

java.lang.Object
dev.boze.api.addon.event.EventToggleAddonModule

public class EventToggleAddonModule extends Object
Event called by addon ToggleableModules when toggled
  • Constructor Details

    • EventToggleAddonModule

      public EventToggleAddonModule()
  • Method Details

    • get

      public static EventToggleAddonModule get(ToggleableModule module, boolean newState)
      Gets the event instance - this is called when a ToggleableModule is toggled by Boze, and should not be called by addons
      Parameters:
      module - The module that was toggled
      newState - The new state of the module
      Returns:
      The event instance
    • getModule

      public ToggleableModule getModule()
      Gets the module that was toggled
      Returns:
      The module that was toggled
    • getNewState

      public boolean getNewState()
      Gets the new state of the module
      Returns:
      The new state of the module