Class SequentialTrigger<X extends BaseEvent>

java.lang.Object
gg.xp.xivsupport.events.triggers.seq.SequentialTrigger<X>
Type Parameters:
X - The event type. Should usually just be 'BaseEvent'.
All Implemented Interfaces:
EventHandler<X>, TypedEventHandler<X>

public class SequentialTrigger<X extends BaseEvent> extends Object implements TypedEventHandler<X>
"Sequential Triggers" allow for a sequence of events to be collected interactively within a block of code. This massively simplifies the code for complex mechanic triggers, as the code for the entire sequence of events can live in one sequential trigger, rather than needing multiple "collector" triggers and having the logic spread out.

It also simplifies cleanup, since all of your state can be kept as local variables rather than class fields.