Package net.blueva.arcade.api.ui
Interface SoundsAPI<P,L,S>
- All Known Subinterfaces:
HTSoundsAPI<P,,L, S> MCSoundsAPI<P,L, S>
public interface SoundsAPI<P,L,S>
API for playing sounds and music to players.
-
Method Summary
Modifier and TypeMethodDescriptionvoidpauseMusic(P player) Pause music for player without losing position.voidPlay sound from module's sounds.yml by key.voidPlay Bukkit sound directly.voidPlay sound at location.voidDeprecated.voidplayRandomMusic(P player, List<String> sounds) Play random music from a list in sounds.yml.voidresumeMusic(P player) Resume paused music for player.voidStop music for player.
-
Method Details
-
play
Play sound from module's sounds.yml by key. -
play
Play Bukkit sound directly. -
playAt
Play sound at location. -
playNBS
Deprecated.Use platform-specific APIs instead:MCSoundsAPI.playNBSfor Minecraft,HTSoundsAPI.playMIDIfor Hytale. This method will be removed in a future major-version window.Play NoteBlock song (.nbs file).- Since:
- 3.3
-
playRandomMusic
Play random music from a list in sounds.yml. -
stopMusic
Stop music for player. -
pauseMusic
Pause music for player without losing position. -
resumeMusic
Resume paused music for player.
-
MCSoundsAPI.playNBSfor Minecraft,HTSoundsAPI.playMIDIfor Hytale.