com.sedmelluq.discord.lavaplayer.player.AudioLoadResultHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lavaplayer Show documentation
Show all versions of lavaplayer Show documentation
A Lavaplayer fork maintained by Lavalink
package com.sedmelluq.discord.lavaplayer.player;
import com.sedmelluq.discord.lavaplayer.tools.FriendlyException;
import com.sedmelluq.discord.lavaplayer.track.AudioPlaylist;
import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
/**
* Handles the result of loading an item from an audio player manager.
*/
public interface AudioLoadResultHandler {
/**
* Called when the requested item is a track and it was successfully loaded.
*
* @param track The loaded track
*/
void trackLoaded(AudioTrack track);
/**
* Called when the requested item is a playlist and it was successfully loaded.
*
* @param playlist The loaded playlist
*/
void playlistLoaded(AudioPlaylist playlist);
/**
* Called when there were no items found by the specified identifier.
*/
void noMatches();
/**
* Called when loading an item failed with an exception.
*
* @param exception The exception that was thrown
*/
void loadFailed(FriendlyException exception);
}