Package com.chillycheesy.modulo.events
Class Event
java.lang.Object
com.chillycheesy.modulo.events.Event
- Direct Known Subclasses:
ControllerEvent
,LogEvent
,ModuleStatusEvent
,RequestEvent
,SignalEmitEvent
An Event can be created, emit and catch by every module.
Each event contain some information about it.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the emitter.void
setEmitter(Module emitter)
Setter for the emitter.
-
Field Details
-
DIVINE
public static final int DIVINE- See Also:
- Constant Field Values
-
MAJOR
public static final int MAJOR- See Also:
- Constant Field Values
-
IMPORTANT
public static final int IMPORTANT- See Also:
- Constant Field Values
-
NEUTRAL
public static final int NEUTRAL- See Also:
- Constant Field Values
-
MISERABLE
public static final int MISERABLE- See Also:
- Constant Field Values
-
emitter
The emitter module.
-
-
Constructor Details
-
Event
public Event()Create a new Event with a null emitter. -
Event
Create a new Event.- Parameters:
emitter
- The emitter module.
-
-
Method Details
-
getEmitter
Getter for the emitter.- Returns:
- The emitter module.
-
setEmitter
Setter for the emitter.- Parameters:
emitter
- The new emitter module.
-