summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-11-19 14:24:40 +1100
committermd_5 <git@md-5.net>2016-11-19 14:24:40 +1100
commitc1a8e12c9ce0686b527bacd40fcda6e3051f53b9 (patch)
treefae21614cc9fe2d84053542ce2da7b2bcfd28a56 /src
parent7512561bdb4c8f8f95d3dc4e5f58370437adff7f (diff)
downloadbukkit-c1a8e12c9ce0686b527bacd40fcda6e3051f53b9.tar
bukkit-c1a8e12c9ce0686b527bacd40fcda6e3051f53b9.tar.gz
bukkit-c1a8e12c9ce0686b527bacd40fcda6e3051f53b9.tar.lz
bukkit-c1a8e12c9ce0686b527bacd40fcda6e3051f53b9.tar.xz
bukkit-c1a8e12c9ce0686b527bacd40fcda6e3051f53b9.zip
Add stopSound for specific sound category
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/entity/Player.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index d3210229..4fa46f08 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -285,6 +285,22 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
public void stopSound(String sound);
/**
+ * Stop the specified sound from playing.
+ *
+ * @param sound the sound to stop
+ * @param category the category of the sound
+ */
+ public void stopSound(Sound sound, SoundCategory category);
+
+ /**
+ * Stop the specified sound from playing.
+ *
+ * @param sound the sound to stop
+ * @param category the category of the sound
+ */
+ public void stopSound(String sound, SoundCategory category);
+
+ /**
* Plays an effect to just this player.
*
* @param loc the location to play the effect at