mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 15:42:19 -07:00
SPIGOT-7071: Add Player#stopSound(SoundCategory category)
By: SkytAsul <skytasul@gmail.com>
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user