mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-19 21:48:48 +01:00
Add stopSound for specific sound category
By: md_5 <git@md-5.net>
This commit is contained in:
parent
1396386f23
commit
c5f5673150
1 changed files with 16 additions and 0 deletions
|
@ -284,6 +284,22 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
|
||||||
*/
|
*/
|
||||||
public void stopSound(String sound);
|
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.
|
* Plays an effect to just this player.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue