Package arc
Class Events
java.lang.Object
arc.Events
Simple global event listener system.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Don't do this.static <T> void
static <T extends Enum<T>>
voidFires an enum trigger.static <T> void
fire
(T type) Fires a non-enum event by class.static <T> void
Handle an event by class.static <T> boolean
Only use this method if you have the reference to the exact listener object that was used.static void
Handle an event by enum trigger.
-
Constructor Details
-
Events
public Events()
-
-
Method Details
-
on
Handle an event by class. -
run
Handle an event by enum trigger. -
remove
Only use this method if you have the reference to the exact listener object that was used. -
fire
Fires an enum trigger. -
fire
public static <T> void fire(T type) Fires a non-enum event by class. -
fire
-
clear
public static void clear()Don't do this.
-