Package com.cryptomorin.xseries
Class NoteBlockMusic.Sequence
java.lang.Object
com.cryptomorin.xseries.NoteBlockMusic.Instruction
com.cryptomorin.xseries.NoteBlockMusic.Sequence
- Enclosing class:
NoteBlockMusic
A sequence is a restatement collection
of multiple other
NoteBlockMusic.Sequence
s and NoteBlockMusic.Sound
that itself might be a part of another NoteBlockMusic.Sequence
A sequence in a script is shown with: (instruction1, instruction2, ...),restatement,restatementFermata fermata
- Since:
- 3.0.0
-
Field Summary
FieldsFields inherited from class com.cryptomorin.xseries.NoteBlockMusic.Instruction
fermata, parent, restatement, restatementFermata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInstruction
(NoteBlockMusic.Instruction instruction) long
void
play
(org.bukkit.entity.Player player, Supplier<org.bukkit.Location> location, boolean playAtLocation) toString()
-
Field Details
-
instructions
-
-
Constructor Details
-
Sequence
public Sequence() -
Sequence
-
Sequence
public Sequence(int restatement, int restatementFermata, int fermata)
-
-
Method Details
-
play
public void play(org.bukkit.entity.Player player, Supplier<org.bukkit.Location> location, boolean playAtLocation) - Specified by:
play
in classNoteBlockMusic.Instruction
-
toString
-
addInstruction
-
getEstimatedLength
public long getEstimatedLength()- Overrides:
getEstimatedLength
in classNoteBlockMusic.Instruction
-