Package dev.boze.api.addon.event
Class EventToggleAddonModule
java.lang.Object
dev.boze.api.addon.event.EventToggleAddonModule
Event called by addon ToggleableModules when toggled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 addonsGets the module that was toggledboolean
Gets the new state of the module
-
Constructor Details
-
EventToggleAddonModule
public EventToggleAddonModule()
-
-
Method Details
-
get
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 togglednewState
- The new state of the module- Returns:
- The event instance
-
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
-