Class NbsPlayer
java.lang.Object
net.raphimc.noteblocklib.player.SongPlayer
io.github.kosmx.emotes.common.nbsplayer.NbsPlayer
public abstract class NbsPlayer
extends net.raphimc.noteblocklib.player.SongPlayer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @Nullable com.zigythebird.playeranimcore.animation.AnimationControllerprotected int -
Constructor Summary
ConstructorsConstructorDescriptionNbsPlayer(net.raphimc.noteblocklib.model.song.Song song, @Nullable com.zigythebird.playeranimcore.animation.AnimationController controller) -
Method Summary
Methods inherited from class net.raphimc.noteblocklib.player.SongPlayer
createTickTask, getCurrentTicksPerSecond, getMillisecondPosition, getSong, getTick, isPaused, isRunning, onFinished, postTick, preTick, setCustomScheduler, setMillisecondPosition, setPaused, setSong, setTick, start, start, start, stop, tick
-
Field Details
-
controller
@Nullable protected final @Nullable com.zigythebird.playeranimcore.animation.AnimationController controller -
loopCount
protected int loopCount
-
-
Constructor Details
-
NbsPlayer
public NbsPlayer(net.raphimc.noteblocklib.model.song.Song song, @Nullable @Nullable com.zigythebird.playeranimcore.animation.AnimationController controller)
-
-
Method Details
-
playNotes
- Specified by:
playNotesin classnet.raphimc.noteblocklib.player.SongPlayer
-
shouldTick
protected boolean shouldTick()- Overrides:
shouldTickin classnet.raphimc.noteblocklib.player.SongPlayer
-
playNote
protected abstract void playNote(net.raphimc.noteblocklib.model.note.Note note) -
onSongFinished
protected void onSongFinished()- Overrides:
onSongFinishedin classnet.raphimc.noteblocklib.player.SongPlayer
-
isFirstSongPlayed
public boolean isFirstSongPlayed() -
onTickException
- Overrides:
onTickExceptionin classnet.raphimc.noteblocklib.player.SongPlayer
-
getNowPlaying
-