@@ -0,0 +1,2763 @@
+/*%0A * MIT License%0A *%0A * Copyright (c) 2017 Connor Hartley%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 THE%0A * SOFTWARE.%0A */%0Apackage com.ichorpowered.guardian.api.phase;%0A%0Aimport com.ichorpowered.guardian.api.util.key.NamedTypeKey;%0A%0Aimport java.util.Set;%0A%0Aimport javax.annotation.Nonnull;%0Aimport javax.annotation.Nullable;%0A%0Apublic interface PhaseRegistry %7B%0A%0A    /**%0A     * Inserts the %7B@link PhaseViewer%7D into the registry.%0A     *%0A     * @param pluginContainer the plugin that registered the phase viewer%0A     * @param key the phase viewer key%0A     * @param phaseViewer the phase viewer%0A     * @param %3CC%3E the plugin container type%0A     * @param %3CT%3E the phase viewer key type%0A     */%0A    %3CC, T%3E void put(@Nonnull C pluginContainer, @Nonnull NamedTypeKey%3CT%3E key,%0A                    @Nonnull PhaseViewer%3CT%3E phaseViewer);%0A%0A    /**%0A     * Retruns the %7B@link PhaseViewer%7D that is represented by its key.%0A     *%0A     * @param key the phase viewer key%0A     * @param %3CT%3E the phase viewer key type%0A     * @return the phase viewer%0A     */%0A    @Nonnull%0A    %3CT%3E PhaseViewer%3CT%3E expect(@Nonnull NamedTypeKey%3CT%3E key);%0A%0A    /**%0A     * Returns the %7B@link PhaseViewer%7D that is represented by its key.%0A     *%0A     * @param key the phase viewer key%0A     * @return the phase viewer%0A     */%0A    @Nullable%0A    PhaseViewer get(@Nonnull NamedTypeKey key);%0A%0A    /**%0A     * Returns the key that represents its %7B@link PhaseViewer%7D.%0A     *%0A     * @param phaseViewer the phase viewer%0A     * @return the phase viewer key%0A     */%0A    @Nullable%0A    NamedTypeKey key(@Nonnull PhaseViewer phaseViewer);%0A%0A    /**%0A     * Returns a set of keys that are contained inside this registry.%0A     *%0A     * @return a set of phase viewer keys%0A     */%0A    @Nonnull%0A    Set%3CNamedTypeKey%3E keySet();%0A%0A%7D%0A

Add phase registry