Package com.reign.kat.lib.voice.newvoice
Class PlaylistPlayer
java.lang.Object
com.sedmelluq.discord.lavaplayer.player.event.AudioEventAdapter
com.reign.kat.lib.voice.newvoice.PlaylistPlayer
- All Implemented Interfaces:
- com.sedmelluq.discord.lavaplayer.player.event.AudioEventListener
public class PlaylistPlayer
extends com.sedmelluq.discord.lavaplayer.player.event.AudioEventAdapter
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intfinal com.sedmelluq.discord.lavaplayer.player.AudioPlayerLavaPlayer AudioPlayer instance.Current playing track - null if nothing is playing.
- 
Constructor SummaryConstructorsConstructorDescriptionPlaylistPlayer(com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager manager, int volume) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidpause()Pause the player.booleanplay(RequestedTrack track) Immediately load and play the track.voidresume()Resume the player.longseek(long position) Seek to position in the current playing track.voidstop()Stops the current playing track, and do not play any next song in the queue.Methods inherited from class com.sedmelluq.discord.lavaplayer.player.event.AudioEventAdapteronEvent, onPlayerPause, onPlayerResume, onTrackEnd, onTrackException, onTrackStart, onTrackStuck, onTrackStuck
- 
Field Details- 
ERROR_LIMITpublic static final int ERROR_LIMIT- See Also:
 
- 
lavaPlayerpublic final com.sedmelluq.discord.lavaplayer.player.AudioPlayer lavaPlayerLavaPlayer AudioPlayer instance. This class DOES NOT manage JDAs audio player.
- 
nowPlayingCurrent playing track - null if nothing is playing.
 
- 
- 
Constructor Details- 
PlaylistPlayerpublic PlaylistPlayer(com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager manager, int volume) 
 
- 
- 
Method Details- 
playImmediately load and play the track.- Parameters:
- track- RequestedTrack to start playing.
- Returns:
- boolean true if the play was successful.
 
- 
pausepublic void pause()Pause the player.
- 
resumepublic void resume()Resume the player.
- 
stoppublic void stop()Stops the current playing track, and do not play any next song in the queue.
- 
seekpublic long seek(long position) Seek to position in the current playing track.- Parameters:
- position- long milliseconds to seek to.
- Returns:
- long milliseconds position of the track.
 
- 
getSendHandler
 
-