java.lang.Object
dev.qilletni.api.music.play.DefaultRoutablePlayActor
- All Implemented Interfaces:
PlayActor
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.qilletni.api.music.play.PlayActor
PlayActor.PlayResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the defaultPlayActor.Plays a track.voidResets the function that will be used to play a track.voidsetReroutedPlayTrack(Function<Track, CompletableFuture<PlayActor.PlayResult>> playFunction) Sets the function that will be used to play a track.
-
Constructor Details
-
DefaultRoutablePlayActor
-
-
Method Details
-
playTrack
Description copied from interface:PlayActorPlays a track. This is highly implementation-dependent. -
setReroutedPlayTrack
public void setReroutedPlayTrack(Function<Track, CompletableFuture<PlayActor.PlayResult>> playFunction) Sets the function that will be used to play a track.- Parameters:
playFunction- The function to use to play a track
-
resetReroutedPlayTrack
public void resetReroutedPlayTrack()Resets the function that will be used to play a track. This will use the defaultPlayActor. -
getDefaultPlay
-