Add API for Sound, and playing the sounds for Worlds and Players. Adds BUKKIT-1430, BUKKIT-1226 and BUKKIT-2019

By: feildmaster <admin@feildmaster.com>
This commit is contained in:
Bukkit/Spigot
2012-08-21 17:06:34 -05:00
parent 0ed310838f
commit 6416e06065
3 changed files with 187 additions and 0 deletions

View File

@@ -983,6 +983,18 @@ public interface World extends PluginMessageRecipient, Metadatable {
*/
void setWaterAnimalSpawnLimit(int limit);
/**
* Play a Sound at the provided Location in the World
* <p />
* This function will fail silently if Location or Sound are null.
*
* @param location The location to play the sound
* @param sound The sound to play
* @param volume The volume of the sound
* @param pitch The pitch of the sound
*/
void playSound(Location loc, Sound sound, float volume, float pitch);
/**
* Represents various map environment types that a world may be
*/