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
Modifier and TypeMethodDescription@Nullable Stringprotected abstract voidhandleEvent(net.raphimc.noteblocklib.format.nbs.model.event.NbsSoundStopperEvent event) protected voidhandleEvents(List<net.raphimc.noteblocklib.model.event.Event> events) booleanprotected voidprotected voidprotected abstract voidplayNote(net.raphimc.noteblocklib.model.note.Note note) protected voidprotected voidpreTick()protected booleanvoidstop()Methods inherited from class net.raphimc.noteblocklib.player.SongPlayer
createTickTask, getCurrentTicksPerSecond, getMillisecondPosition, getSong, getTick, isPaused, isRunning, postTick, setCustomScheduler, setMillisecondPosition, setPaused, setSong, setTick, start, start, start, 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
-
preTick
protected void preTick()- Overrides:
preTickin classnet.raphimc.noteblocklib.player.SongPlayer
-
shouldTick
protected boolean shouldTick() -
playNote
protected abstract void playNote(net.raphimc.noteblocklib.model.note.Note note) -
handleEvents
- Overrides:
handleEventsin classnet.raphimc.noteblocklib.player.SongPlayer
-
handleEvent
protected abstract void handleEvent(net.raphimc.noteblocklib.format.nbs.model.event.NbsSoundStopperEvent event) -
onSongFinished
protected void onSongFinished()- Overrides:
onSongFinishedin classnet.raphimc.noteblocklib.player.SongPlayer
-
stop
public void stop()- Overrides:
stopin classnet.raphimc.noteblocklib.player.SongPlayer
-
isFirstSongPlayed
public boolean isFirstSongPlayed() -
onTickException
- Overrides:
onTickExceptionin classnet.raphimc.noteblocklib.player.SongPlayer
-
getNowPlaying
-