summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Hennig <lukas@wirsindwir.de>2016-03-02 14:02:18 +0100
committermd_5 <git@md-5.net>2016-03-06 12:19:13 +1100
commitf714a0eb175d1619a7847946cdea1056649cd597 (patch)
treeb5b1aaa923489a8c318b8dfb4672866873f313a7 /src
parent5fa44fc1a10ad8b3efca62ef0429aadce253c8bc (diff)
downloadbukkit-f714a0eb175d1619a7847946cdea1056649cd597.tar
bukkit-f714a0eb175d1619a7847946cdea1056649cd597.tar.gz
bukkit-f714a0eb175d1619a7847946cdea1056649cd597.tar.lz
bukkit-f714a0eb175d1619a7847946cdea1056649cd597.tar.xz
bukkit-f714a0eb175d1619a7847946cdea1056649cd597.zip
Added a playSound method to World which accepts a String parameter.
Similar to the respective method in Player.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/World.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
index 5cc1feca..58f44313 100644
--- a/src/main/java/org/bukkit/World.java
+++ b/src/main/java/org/bukkit/World.java
@@ -1121,6 +1121,20 @@ public interface World extends PluginMessageRecipient, Metadatable {
void playSound(Location location, Sound sound, float volume, float pitch);
/**
+ * Play a Sound at the provided Location in the World.
+ * <p>
+ * This function will fail silently if Location or Sound are null. No
+ * sound will be heard by the players if their clients do not have the
+ * respective sound for the value passed.
+ *
+ * @param location the location to play the sound
+ * @param sound the internal sound name to play
+ * @param volume the volume of the sound
+ * @param pitch the pitch of the sound
+ */
+ void playSound(Location location, String sound, float volume, float pitch);
+
+ /**
* Get existing rules
*
* @return An array of rules