@@ -0,0 +1,2434 @@
+/*%0A * This file is part of Sponge, licensed under the MIT License (MIT).%0A *%0A * Copyright (c) SpongePowered.org %3Chttp://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.entity;%0A%0Aimport org.spongepowered.api.entity.EntityType;%0Aimport org.spongepowered.api.event.GameEvent;%0Aimport org.spongepowered.api.event.cause.CauseTracked;%0Aimport org.spongepowered.api.util.event.Cancellable;%0Aimport org.spongepowered.api.world.Location;%0A%0A/**%0A * Represents an event where an entity is about to be constructed and%0A * may be spawned in a world.%0A *%0A * %3Cp%3EThis event allows plugins to cancel the creation of entities%0A * purely based on the %7B@link EntityType%7D and %7B@link Location%7D. This%0A * aids in massive object churning that would otherwise occur in%0A * massive cancellation of %7B@link EntitySpawnEvent%7Ds due to the%0A * instantiation of entities and subsequently killing said entities.%3C/p%3E%0A */%0Apublic interface EntityAboutToConstructEvent extends GameEvent, CauseTracked, Cancellable %7B%0A%0A    /**%0A     * Gets the %7B@link EntityType%7D that is going to be constructed.%0A     *%0A     * @return The entity type%0A     */%0A    EntityType getEntityType();%0A%0A    /**%0A     * Gets the %7B@link Location%7D of the entity that is going to be constructed.%0A     *%0A     * @return The location that the entity would spawn at%0A     */%0A    Location getLocation();%0A%0A%7D%0A

Add EntityAboutToConstructEvent.