By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-06-09 22:38:21 -07:00
3 changed files with 66 additions and 1 deletions

View File

@ -531,7 +531,32 @@ public interface World {
* @return List containing any or none BlockPopulators
*/
public List<BlockPopulator> getPopulators();
/**
* Plays a sound to just one player.
* @param player the player to play the sound for
* @param sound the {@link Sound}
* @param data a data bit needed for the RECORD_PLAY, SMOKE, and STEP_SOUND sounds
*/
public void playSound(Player player, Sound sound, int data);
/**
* Plays a sound to all players within a default radius around a given location.
* @param location the {@link Location} around which players must be to hear the sound
* @param sound the {@link Sound}
* @param data a data bit needed for the RECORD_PLAY, SMOKE, and STEP_SOUND sounds
*/
public void playSound(Location location, Sound sound, int data);
/**
* Plays a sound to all players within a given radius around a location.
* @param location the {@link Location} around which players must be to hear the sound
* @param sound the {@link Sound}
* @param data a data bit needed for the RECORD_PLAY, SMOKE, and STEP_SOUND sounds
* @param radius the radius around the location
*/
public void playSound(Location location, Sound sound, int data, int radius);
/**
* Represents various map environment types that a world may be
*/