Package com.chillycheesy.modulo.event
Class ModuleStatusEvent
java.lang.Object
com.chillycheesy.modulo.events.Event
com.chillycheesy.modulo.event.ModuleStatusEvent
- All Implemented Interfaces:
Cancelable
- Direct Known Subclasses:
OnLoadEvent
,OnStartEvent
,OnStopEvent
Event emits when there's a change on a
Module
status.- See Also:
OnStartEvent
,OnLoadEvent
,OnStopEvent
,Cancelable
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Getter for the cancelable action.Getter for the module.boolean
Check if the event was cancel.setCancelableAction(CancelableAction action)
Setter for the cancelable action.void
setCanceled(boolean cancel)
Setter for the cancel status.void
Getter for the module.Methods inherited from class com.chillycheesy.modulo.events.Event
getEmitter, setEmitter
-
Constructor Details
-
ModuleStatusEvent
Create a new Module status Event.- Parameters:
module
- the module which have a change on his status
-
-
Method Details
-
getModule
Getter for the module.- Returns:
- the module.
-
setModule
Getter for the module.- Parameters:
module
- The new module.
-
equals
-
isCanceled
public boolean isCanceled()Description copied from interface:Cancelable
Check if the event was cancel.- Specified by:
isCanceled
in interfaceCancelable
- Returns:
- The cancel status.
-
setCanceled
public void setCanceled(boolean cancel)Description copied from interface:Cancelable
Setter for the cancel status.- Specified by:
setCanceled
in interfaceCancelable
- Parameters:
cancel
- The new cancel status.
-
setCancelableAction
Description copied from interface:Cancelable
Setter for the cancelable action.- Specified by:
setCancelableAction
in interfaceCancelable
- Parameters:
action
- The action to execute.
-
getCancelableAction
Description copied from interface:Cancelable
Getter for the cancelable action.- Specified by:
getCancelableAction
in interfaceCancelable
- Returns:
- The action to execute.
-