rl-api: expose currently playing music/jingle

This commit is contained in:
Max Weber
2022-05-10 06:43:05 -06:00
parent cab126c6bb
commit b5b19e0771

View File

@@ -1167,6 +1167,17 @@ public interface Client extends OAuthApi, GameEngine
*/
void setMusicVolume(int volume);
/**
* @return true if the current {@link #getMusicCurrentTrackId()} is a Jingle, otherwise its a Track
*/
boolean isPlayingJingle();
/**
* @return Currently playing music/jingle id, or -1 if not playing
* @see #isPlayingJingle()
*/
int getMusicCurrentTrackId();
/**
* Play a sound effect at the player's current location. This is how UI,
* and player-generated (e.g. mining, woodcutting) sound effects are