From c1a8e12c9ce0686b527bacd40fcda6e3051f53b9 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 19 Nov 2016 14:24:40 +1100 Subject: Add stopSound for specific sound category --- src/main/java/org/bukkit/entity/Player.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') 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 @@ -284,6 +284,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. * -- cgit v1.2.3