From c5f5673150800e990060c94fceadec2a0a811a2f Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 19 Nov 2016 14:24:40 +1100 Subject: [PATCH] Add stopSound for specific sound category By: md_5 --- .../src/main/java/org/bukkit/entity/Player.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index d3210229f7..4fa46f082c 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/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. *