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

    Fields
    Modifier and Type
    Field
    Description
    protected final @Nullable com.zigythebird.playeranimcore.animation.AnimationController
     
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    NbsPlayer(net.raphimc.noteblocklib.model.Song song, @Nullable com.zigythebird.playeranimcore.animation.AnimationController controller)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    protected void
     
    protected void
     
    protected abstract void
    playNote(net.raphimc.noteblocklib.model.Note note)
     
    protected void
    playNotes(List<net.raphimc.noteblocklib.model.Note> notes)
     
    protected boolean
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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, @Nullable @Nullable com.zigythebird.playeranimcore.animation.AnimationController controller)
  • Method Details

    • playNotes

      protected void playNotes(List<net.raphimc.noteblocklib.model.Note> notes)
      Specified by:
      playNotes in class net.raphimc.noteblocklib.player.SongPlayer
    • shouldTick

      protected boolean shouldTick()
      Overrides:
      shouldTick in class net.raphimc.noteblocklib.player.SongPlayer
    • playNote

      protected abstract void playNote(net.raphimc.noteblocklib.model.Note note)
    • onSongFinished

      protected void onSongFinished()
      Overrides:
      onSongFinished in class net.raphimc.noteblocklib.player.SongPlayer
    • isFirstSongPlayed

      public boolean isFirstSongPlayed()
    • onTickException

      protected void onTickException(Throwable e)
      Overrides:
      onTickException in class net.raphimc.noteblocklib.player.SongPlayer