@@ -0,0 +1,2996 @@
+/*%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.util;%0A%0Aimport com.flowpowered.math.vector.Vectord;%0Aimport com.flowpowered.math.vector.Vectorf;%0Aimport com.flowpowered.math.vector.Vectori;%0A%0A/**%0A * An exception thrown when a position in outside of its expected bounds.%0A */%0Apublic class PositionOutOfBoundsException extends RuntimeException %7B%0A    private static final long serialVersionUID = 1;%0A%0A    /**%0A     * Constructs the exception from int coordinate vectors.%0A     *%0A     * @param position The out-of-bounds position%0A     * @param min The minimum acceptable bound%0A     * @param max The maximum acceptable bound%0A     */%0A    public PositionOutOfBoundsException(Vectori position, Vectori min, Vectori max) %7B%0A        this(position.toString(), min.toString(), max.toString());%0A    %7D%0A%0A    /**%0A     * Constructs the exception from float coordinate vectors.%0A     *%0A     * @param position The out-of-bounds position%0A     * @param min The minimum acceptable bound%0A     * @param max The maximum acceptable bound%0A     */%0A    public PositionOutOfBoundsException(Vectorf position, Vectorf min, Vectorf max) %7B%0A        this(position.toString(), min.toString(), max.toString());%0A    %7D%0A%0A    /**%0A     * Constructs the exception from double coordinate vectors.%0A     *%0A     * @param position The out-of-bounds position%0A     * @param min The minimum acceptable bound%0A     * @param max The maximum acceptable bound%0A     */%0A    public PositionOutOfBoundsException(Vectord position, Vectord min, Vectord max) %7B%0A        this(position.toString(), min.toString(), max.toString());%0A    %7D%0A%0A    private PositionOutOfBoundsException(String position, String min, String max) %7B%0A        super(%22Position if out of bounds: expected in range %22 + min + %22 to %22 + max + %22 but got %22 + position);%0A    %7D%0A%7D%0A

Add PositionOutOfBoundsException