Package com.cryptomorin.xseries
Class NoteBlockMusic.Sequence
- java.lang.Object
-
- com.cryptomorin.xseries.NoteBlockMusic.Instruction
-
- com.cryptomorin.xseries.NoteBlockMusic.Sequence
-
- Enclosing class:
- NoteBlockMusic
public static class NoteBlockMusic.Sequence extends NoteBlockMusic.Instruction
A sequence is a restatement collection of multiple otherNoteBlockMusic.Sequences andNoteBlockMusic.Soundthat itself might be a part of anotherNoteBlockMusic.SequenceA sequence in a script is shown with:
(intruction1, instruction2, ...),restatement,restatementFermata fermata- Since:
- 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description Collection<NoteBlockMusic.Instruction>instructions-
Fields inherited from class com.cryptomorin.xseries.NoteBlockMusic.Instruction
fermata, parent, restatement, restatementFermata
-
-
Constructor Summary
Constructors Constructor Description Sequence()Sequence(int restatement, int restatementFermata, int fermata)Sequence(NoteBlockMusic.Instruction first)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInstruction(NoteBlockMusic.Instruction instruction)longgetEstimatedLength()voidplay(org.bukkit.entity.Player player, Supplier<org.bukkit.Location> location)StringtoString()
-
-
-
Field Detail
-
instructions
public Collection<NoteBlockMusic.Instruction> instructions
-
-
Constructor Detail
-
Sequence
public Sequence()
-
Sequence
public Sequence(NoteBlockMusic.Instruction first)
-
Sequence
public Sequence(int restatement, int restatementFermata, int fermata)
-
-
Method Detail
-
play
public void play(org.bukkit.entity.Player player, Supplier<org.bukkit.Location> location)- Specified by:
playin classNoteBlockMusic.Instruction
-
addInstruction
public void addInstruction(NoteBlockMusic.Instruction instruction)
-
getEstimatedLength
public long getEstimatedLength()
- Overrides:
getEstimatedLengthin classNoteBlockMusic.Instruction
-
-