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, @Nullable com.zigythebird.playeranimcore.animation.AnimationController controller) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidprotected voidprotected abstract voidplayNote(net.raphimc.noteblocklib.model.Note note) protected voidprotected booleanMethods 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, @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) -
onSongFinished
protected void onSongFinished()- Overrides:
onSongFinishedin classnet.raphimc.noteblocklib.player.SongPlayer
-
isFirstSongPlayed
public boolean isFirstSongPlayed() -
onTickException
- Overrides:
onTickExceptionin classnet.raphimc.noteblocklib.player.SongPlayer
-