rl-api: expose currently playing music/jingle
This commit is contained in:
@@ -1167,6 +1167,17 @@ public interface Client extends OAuthApi, GameEngine
|
|||||||
*/
|
*/
|
||||||
void setMusicVolume(int volume);
|
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,
|
* Play a sound effect at the player's current location. This is how UI,
|
||||||
* and player-generated (e.g. mining, woodcutting) sound effects are
|
* and player-generated (e.g. mining, woodcutting) sound effects are
|
||||||
|
|||||||
Reference in New Issue
Block a user