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 Player. For the moment it only contains a static method, see
invalid @link
#stopAudio(Player)
, more methods will be added further.
Since:
2022-06-30
Version:
1.0.0
Author:
Xxathyx
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    stopAudio(org.bukkit.entity.Player player, String sound)
    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

      void stopAudio(org.bukkit.entity.Player player, String sound)
      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.