mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-7071: Add Player#stopSound(SoundCategory category)
By: SkytAsul <skytasul@gmail.com>
This commit is contained in:
parent
24ea881685
commit
16583c1d7c
1 changed files with 7 additions and 0 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue