Class ControllerAppliedEvent
java.lang.Object
com.chillycheesy.modulo.events.Event
com.chillycheesy.modulo.event.controllers.ControllerEvent
com.chillycheesy.modulo.event.controllers.ControllerAppliedEvent
- All Implemented Interfaces:
Cancelable
-
Field Summary
FieldsFields inherited from class com.chillycheesy.modulo.event.controllers.ControllerEvent
controller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the cancelable action.boolean
Check if the event was cancel.setCancelableAction(CancelableAction action)
Setter for the cancelable action.void
setCanceled(boolean cancel)
Setter for the cancel status.Methods inherited from class com.chillycheesy.modulo.event.controllers.ControllerEvent
getController, setController
Methods inherited from class com.chillycheesy.modulo.events.Event
getEmitter, setEmitter
-
Field Details
-
cancelableAction
-
canceled
protected boolean canceled
-
-
Constructor Details
-
ControllerAppliedEvent
-
-
Method Details
-
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.
-