/*
 * MIT License
 *
 * Copyright (c) 2017 Connor Hartley
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.ichorpowered.guardian.api.sequence;

import com.ichorpowered.guardian.api.sequence.action.Action;

/**
 * Represents a sequence of {@link Action}s that can be
 * run in a chain.
 *
 * @param <P> the player type
 */
public interface Sequence<P> {

    /**
     * Returns the result of applying the
     * player and event to the sequence.
     *
     * @param player the player
     * @param event the event
     * @param <T> the event type
     * @return the result
     */
    <T> boolean apply(P player, T event);

}

@@ -1659,10 +1659,1105 @@
 vent);%0A%0A
+    /**%0A     * Returns the %7B@link SequenceBlueprint%7D for this sequence.%0A     *%0A     * @param %3CE%3E the check detections owner type%0A     * @param %3CF%3E the check detections configuration type%0A     * @return the sequence blueprint%0A     */%0A    %3CE, F%3E SequenceBlueprint%3CE, F, P%3E getSequenceBlueprint();%0A%0A    /**%0A     * Returns %7Bcode true%7D if the sequence is running and%0A     * %7B@code false%7D if it is not.%0A     *%0A     * @return the sequence running state%0A     */%0A    boolean isRunning();%0A%0A    /**%0A     * Returns %7B@code true%7D if the sequence has been cancelled%0A     * and %7B@code false%7D if it has not.%0A     *%0A     * @return the sequence cancel state%0A     */%0A    boolean isCancelled();%0A%0A    /**%0A     * Returns %7B@code true%7D if the sequence has been running%0A     * past the expiry time and %7B@code false%7D if it has not.%0A     *%0A     * @return the sequence expiry state%0A     */%0A    boolean isExpired();%0A%0A    /**%0A     * Returns %7B@code true%7D if the sequence has finished%0A     * running its actions and %7B@code false%7D if it has not.%0A     *%0A     * @return the sequence finish state%0A     */%0A    boolean isFinished();%0A%0A
 %7D%0A

Add sequence states