Package gg.xp.xivsupport.groovy
Class GroovyTriggers
java.lang.Object
gg.xp.xivsupport.groovy.GroovyTriggers
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
GroovyTriggers.Builder<X extends BaseEvent>
class
class
GroovyTriggers.GroovySqHelper<X extends BaseEvent>
Provides some wrapper methods overSequentialTriggerController
to make things more convenient in Groovy-land. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(groovy.lang.Closure<?> closure) <X extends Event>
voidaddGroovyHandler
(Object key, Class<X> eventType, groovy.lang.Closure<?> handler) <X extends Event>
voidaddHandler
(Object key, Class<X> eventType, BiConsumer<X, EventContext> handler) void
handle
(EventContext context, Event event) <X extends Event>
voidremoveHandler
(Object key)
-
Constructor Details
-
GroovyTriggers
-
-
Method Details
-
addHandler
public <X extends Event> void addHandler(Object key, Class<X> eventType, BiConsumer<X, EventContext> handler) -
removeHandler
-
addGroovyHandler
-
handle
-
add
-