Interface HTSoundsAPI<P,L,S>
- All Superinterfaces:
SoundsAPI<P,L, S>
Hytale-specific extension of
SoundsAPI.
Provides MIDI playback support through the BlueArcade instrument pipeline.- Since:
- 3.3
-
Method Summary
Methods inherited from interface net.blueva.arcade.api.ui.SoundsAPI
pauseMusic, play, play, playAt, playNBS, playRandomMusic, resumeMusic, stopMusic
-
Method Details
-
playMIDI
Play a MIDI melody for a player. ThemidiIdis a path relative to the module'ssounds/folder, without the.midiextension (e.g."effect/finish_game").- Parameters:
player- Player to play the melody formidiId- MIDI asset identifier
-
stopMIDI
Stop any MIDI melody currently playing for a player.- Parameters:
player- Player to stop the melody for
-
playRandomMIDI
Play a random MIDI melody from a list of IDs.- Parameters:
player- Player to play the melody formidiIds- List of MIDI asset identifiers
-