@@ -0,0 +1,3436 @@
+/*%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.sound;%0A%0Aimport org.spongepowered.api.block.tileentity.Jukebox;%0Aimport org.spongepowered.api.effect.sound.SoundCategory;%0Aimport org.spongepowered.api.effect.sound.SoundType;%0Aimport org.spongepowered.api.effect.sound.record.RecordType;%0Aimport org.spongepowered.api.entity.living.player.Player;%0Aimport org.spongepowered.api.event.Cancellable;%0Aimport org.spongepowered.api.event.Event;%0Aimport org.spongepowered.api.world.Location;%0Aimport org.spongepowered.api.world.World;%0A%0Aimport java.util.Optional;%0A%0Apublic interface PlaySoundEvent extends Event, Cancellable %7B%0A%0A    /**%0A     * Gets the location of the sound being played.%0A     *%0A     * @return the location of the sound being played%0A     */%0A    Location%3CWorld%3E getLocation();%0A%0A    /**%0A     * Gets the %7B@link SoundCategory%7D for the sound being played%0A     * @return%0A     */%0A    SoundCategory getSoundCategory();%0A%0A    /**%0A     * Gets the %7B@link SoundType%7D for the sound being played%0A     * @return%0A     */%0A    SoundType getSoundType();%0A%0A    /**%0A     * Gets the volume of the sound being played%0A     * @return%0A     */%0A    float getVolume();%0A%0A    /**%0A     * Gets the pitch of the sound being played%0A     * @return%0A     */%0A    float getPitch();%0A%0A    /**%0A     * Fired when a sound is broadcasted to all %7B@link Player%7Ds on the server.%0A     * %3Cp%3EExamples of when this might be fired include:%3C/p%3E%0A     *%0A     * %3Cul%3E%0A     * %3Cli%3EWhen a Wither or Dragon dies;%3C/li%3E%0A     * %3Cli%3EWhen requested by a plugin via %7B@link World#playBroadcastSound()%7D%3C/li%3E%0A     * %3C/ul%3E%0A     */%0A    interface Broadcast extends PlaySoundEvent %7B%0A%0A    %7D%0A%0A    /**%0A     * Fired when a record is inserted into a Jukebox%0A     */%0A    interface Record extends PlaySoundEvent %7B%0A%0A        /**%0A         * Gets the %7B@link Jukebox%7D associated with this event%0A         * @return%0A         */%0A        Jukebox getJukebox();%0A%0A        /**%0A         * Gets the %7B@link RecordType%7D associated with this event%0A         * @return%0A         */%0A        RecordType getRecordType();%0A%0A        interface Start extends Record %7B%7D%0A        interface Stop extends Record %7B%7D%0A%0A    %7D%0A%0A    interface AtEntity extends PlaySoundEvent %7B%0A%0A        Optional%3CPlayer%3E getPlayer();%0A%0A    %7D%0A%0A%7D%0A

add SoundEvent