Interface MCSoundsAPI<P,L,S>

All Superinterfaces:
SoundsAPI<P,L,S>

public interface MCSoundsAPI<P,L,S> extends SoundsAPI<P,L,S>
Minecraft-specific extension of SoundsAPI. Provides built-in note-block song (.nbs) playback.
Since:
3.3
  • Method Details

    • playNBS

      void playNBS(P player, String nbsFile)
      Play a NoteBlock song (.nbs file) for a player. Replaces the deprecated SoundsAPI.playNBS(Object, String).
      Specified by:
      playNBS in interface SoundsAPI<P,L,S>
      Parameters:
      player - Player to play the song for
      nbsFile - NBS file path (relative to the module's sounds folder, without extension)
    • stopNBS

      void stopNBS(P player)
      Stop the NBS song currently playing for a player.
      Parameters:
      player - Player to stop the song for