Class MusicQuizUtil
java.lang.Object
de.presti.ree6.game.impl.musicquiz.util.MusicQuizUtil
Class used to handle MusicQuiz related Utilities.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MusicQuizUtil
public MusicQuizUtil()Constructor.
This constructor will load all songs from the Spotify API.Reason why Spotify is being used is because it stores direct information about artists and the normal song title. YouTube version will most likely have a different title and artist names like "Mr. HumanRealRaper VEVO". Features are most "ft. Artist" and "feat. Artist", so it is easier just using spotify instead of making a complicated regex to get the correct artist name/parser with low precision.
-
-
Method Details
-
getRandomEntry
Retrieve a random entry from this list.- Returns:
- A random entry.
-