@@ -0,0 +1,3305 @@
+/*%0A * This file is part of SpongeAPI, licensed under the MIT License (MIT).%0A *%0A * Copyright (c) SpongePowered %3Chttps://www.spongepowered.org%3E%0A * Copyright (c) contributors%0A *%0A * Permission is hereby granted, free of charge, to any person obtaining a copy%0A * of this software and associated documentation files (the %22Software%22), to deal%0A * in the Software without restriction, including without limitation the rights%0A * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0A * copies of the Software, and to permit persons to whom the Software is%0A * furnished to do so, subject to the following conditions:%0A *%0A * The above copyright notice and this permission notice shall be included in%0A * all copies or substantial portions of the Software.%0A *%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN%0A * THE SOFTWARE.%0A */%0Apackage org.spongepowered.api.event;%0A%0A/**%0A * Used for events that require a tri-state %7B@link Result%7D.%0A */%0Apublic interface TristateResult %7B%0A%0A    enum Result %7B%0A        /**%0A         * Disallow the event from resolving. %0A         * %0A         * %3Cp%3ENote: Normally, this means cancelling or reverting the default %0A         * behavior, but in some cases, especially when %7B@link #hasAllowResult%7D %0A         * is true, this could be default behavior.%3C/p%3E%0A         */%0A        DENY,%0A        /**%0A         * Let the event resolve with its normal behavior, as if the event was%0A         * not handled at all. %0A         * %0A         * %3Cp%3ENote: This will fall back to the %22vanilla%22 behavior for this %0A         * event, or the plugin-defined behavior if it was originally created %0A         * by a plugin.%3C/p%3E%0A         */%0A        DEFAULT,%0A        /**%0A         * Forcibly execute the action of this event when it resolves, even if%0A         * another condition would normally prevent this event from finishing%0A         * normally.%0A         * %0A         * %3Cp%3ENote that not all events have an overridable behavior,%0A         * so %7B@link #hasAllowResult%7D should be checked before setting the%0A         * result to ALLOW.%3C/p%3E%0A         */%0A        ALLOW%0A    %7D%0A%0A    /**%0A     * Returns whether the%0A     * %7B@link org.spongepowered.api.event.TristateResult.Result#ALLOW%7D can be%0A     * used.%0A     */%0A    boolean hasAllowResult();%0A%0A    /**%0A     * Returns the original %7B@link Result%7D of this event.%0A     */%0A    Result getOriginalResult();%0A%0A    /**%0A     * Returns the %7B@link Result%7D of this event.%0A     */%0A    Result getResult();%0A%0A    /**%0A     * Sets the result value for this event.%0A     *%0A     * %3Cp%3E Note: The functionality of setting the %7B@link Result%7D is defined on a%0A     * per-event basis.%3C/p%3E%0A     *%0A     * @param value The new result%0A     * @throws IllegalStateException if%0A     *    %7B@link org.spongepowered.api.event.TristateResult.Result#ALLOW%7D is%0A     *    given, but %7B@link #hasAllowResult%7D is %7B@code false%7D%0A     */%0A    void setResult(Result value) throws IllegalStateException;%0A%7D%0A

Add TristateResult for events.