Hi guys,
So I'm developing an adaptive music player for a school project. I got most of the stuff working but I can't figure out how to stop the vanilla minecraft music.
I found a similar project and I suspect they used this method:
@SubscribeEvent
public void onBackgroundMusic(PlayBackgroundMusicEvent event) {
if(SongLoader.enabled)
event.setCanceled(false);
}
But this doesn't work, since PlayBackgroundMusicEvent is "@Deprecated".
Do you guys know any other method?
Many thanks,
Slashpwn