SPIGOT-7071: Add Player#stopSound(SoundCategory category)

By: SkytAsul <skytasul@gmail.com>
This commit is contained in:
Bukkit/Spigot 2022-07-01 20:44:34 +10:00
parent 24ea881685
commit 16583c1d7c

View file

@ -406,6 +406,13 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
*/
public void stopSound(@NotNull String sound, @Nullable SoundCategory category);
/**
* Stop the specified sound category from playing.
*
* @param category the sound category to stop
*/
public void stopSound(@NotNull SoundCategory category);
/**
* Stop all sounds from playing.
*/