com.github.bjoernpetersen.jmusicbot.PlaybackSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of musicbot Show documentation
Show all versions of musicbot Show documentation
Core library of MusicBot, which plays music from various providers.
package com.github.bjoernpetersen.jmusicbot;
import com.github.bjoernpetersen.jmusicbot.playback.Playback;
import java.io.IOException;
import javax.annotation.Nonnull;
@FunctionalInterface
public interface PlaybackSupplier {
/**
* Supplies the playback object for the specified song.
*
* @param song a song
* @return a Playback object
* @throws IOException if the playback could not be created
*/
@Nonnull
Playback supply(Song song) throws IOException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy