generated from QuiltMC/quilt-template-mod
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send scrobble events at 66% listen time instead of when the track ends
- Loading branch information
Showing
7 changed files
with
68 additions
and
18 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
projects/kit-tunes-api/src/main/java/net/pixaurora/kit_tunes/api/event/TrackMiddleEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package net.pixaurora.kit_tunes.api.event; | ||
|
||
import java.util.Optional; | ||
|
||
import net.pixaurora.kit_tunes.api.music.ListeningProgress; | ||
import net.pixaurora.kit_tunes.api.music.Track; | ||
import net.pixaurora.kit_tunes.api.resource.ResourcePath; | ||
|
||
public interface TrackMiddleEvent { | ||
public Optional<Track> track(); | ||
|
||
public ResourcePath searchPath(); | ||
|
||
public ListeningProgress progress(); | ||
} |
4 changes: 4 additions & 0 deletions
4
.../kit-tunes-api/src/main/java/net/pixaurora/kit_tunes/api/listener/MusicEventListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters