Package com.cryptomorin.xseries
Class NoteBlockMusic.Sound
- java.lang.Object
-
- com.cryptomorin.xseries.NoteBlockMusic.Instruction
-
- com.cryptomorin.xseries.NoteBlockMusic.Sound
-
- Enclosing class:
- NoteBlockMusic
public static class NoteBlockMusic.Sound extends NoteBlockMusic.Instruction
An instruction that produces a sonud which consists of aInstrumentand aNotewithNote.Tone, but without duration or- Since:
- 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description floatpitchIn Minecraft you have no control over note durations.XSoundsoundfloatvolumeIn Minecraft you have no control over note durations.-
Fields inherited from class com.cryptomorin.xseries.NoteBlockMusic.Instruction
fermata, parent, restatement, restatementFermata
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidplay(org.bukkit.entity.Player player, Supplier<org.bukkit.Location> location)voidsetPitch(org.bukkit.Note note)voidsetSound(org.bukkit.Instrument instrument)StringtoString()-
Methods inherited from class com.cryptomorin.xseries.NoteBlockMusic.Instruction
getEstimatedLength
-
-
-
-
Field Detail
-
sound
public XSound sound
-
volume
public float volume
-
pitch
public float pitch
-
-
Constructor Detail
-
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 Detail
-
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)- Specified by:
playin classNoteBlockMusic.Instruction
-
-