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

public abstract class ModuleStatusEvent extends Event implements Cancelable
Event emits when there's a change on a Module status.
See Also:
OnStartEvent, OnLoadEvent, OnStopEvent, Cancelable
  • Constructor Details

    • ModuleStatusEvent

      public ModuleStatusEvent(Module module)
      Create a new Module status Event.
      Parameters:
      module - the module which have a change on his status
  • Method Details

    • getModule

      public Module getModule()
      Getter for the module.
      Returns:
      the module.
    • setModule

      public void setModule(Module module)
      Getter for the module.
      Parameters:
      module - The new module.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • isCanceled

      public boolean isCanceled()
      Description copied from interface: Cancelable
      Check if the event was cancel.
      Specified by:
      isCanceled in interface Cancelable
      Returns:
      The cancel status.
    • setCanceled

      public void setCanceled(boolean cancel)
      Description copied from interface: Cancelable
      Setter for the cancel status.
      Specified by:
      setCanceled in interface Cancelable
      Parameters:
      cancel - The new cancel status.
    • setCancelableAction

      public ModuleStatusEvent setCancelableAction(CancelableAction action)
      Description copied from interface: Cancelable
      Setter for the cancelable action.
      Specified by:
      setCancelableAction in interface Cancelable
      Parameters:
      action - The action to execute.
    • getCancelableAction

      public CancelableAction getCancelableAction()
      Description copied from interface: Cancelable
      Getter for the cancelable action.
      Specified by:
      getCancelableAction in interface Cancelable
      Returns:
      The action to execute.