Package fr.xxathyx.mediaplayer.util
Interface AudioUtil
- All Known Implementing Classes:
Above
,v1_7_R1
,v1_7_R2
,v1_7_R3
,v1_7_R4
,v1_8_R1
,v1_8_R2
,v1_8_R3
,v1_9_R1
,v1_9_R2
public interface AudioUtil
The AudioUtil class serves as an utility class in order to perform audio actions to
, more methods will be added
further.
Player
.
For the moment it only contains a static method, see
invalid @link
#stopAudio(Player)
- Since:
- 2022-06-30
- Version:
- 1.0.0
- Author:
- Xxathyx
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Stops a sound effect that is actually played to a player, packets will be used for the following versions: v1_8_R1, v1_8_R2, v1_8_R3, v1_9_R1, v1_9_R2, otherwise for further versions the Minecraft stopsound command will be called from Console.
-
Method Details
-
stopAudio
Stops a sound effect that is actually played to a player, packets will be used for the following versions: v1_8_R1, v1_8_R2, v1_8_R3, v1_9_R1, v1_9_R2, otherwise for further versions the Minecraft stopsound command will be called from Console.This is the same as calling
invalid @link
SoundPlayer#stopSound(Player)
- Parameters:
player
- The player hearing a sound.
-