Package com.cryptomorin.xseries
Class NoteBlockMusic.Sound
java.lang.Object
com.cryptomorin.xseries.NoteBlockMusic.Instruction
com.cryptomorin.xseries.NoteBlockMusic.Sound
- Enclosing class:
- NoteBlockMusic
An instruction that produces a sonud which consists of a
Instrument and a Note with Note.Tone,
but without duration or- Since:
- 3.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatIn Minecraft you have no control over note durations.floatIn Minecraft you have no control over note durations.Fields inherited from class com.cryptomorin.xseries.NoteBlockMusic.Instruction
fermata, parent, restatement, restatementFermata -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.cryptomorin.xseries.NoteBlockMusic.Instruction
getEstimatedLength
-
Field Details
-
sound
-
volume
public float volume -
pitch
public float pitch
-
-
Constructor Details
-
Sound
public Sound(org.bukkit.Instrument instrument, org.bukkit.Note note, float volume, int restatement, int restatementFermata, int fermata) -
Sound
public Sound(XSound sound, float pitch, float volume, int restatement, int restatementFermata, int fermata)
-
-
Method Details
-
setSound
public void setSound(org.bukkit.Instrument instrument) -
setPitch
public void setPitch(org.bukkit.Note note) -
play
public void play(org.bukkit.entity.Player player, Supplier<org.bukkit.Location> location, boolean playAtLocation) - Specified by:
playin classNoteBlockMusic.Instruction
-
toString
-