Interface PlaySoundEvent.NoteBlock
- All Superinterfaces:
Cancellable
,Event
,PlaySoundEvent
- Enclosing interface:
- PlaySoundEvent
Fired when a noteblock is triggered
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.sound.PlaySoundEvent
PlaySoundEvent.AtEntity, PlaySoundEvent.Broadcast, PlaySoundEvent.FromJukebox, PlaySoundEvent.NoteBlock
-
Method Summary
Modifier and TypeMethodDescriptionThe type of instrument that played theNote block
.The pitch of the playedNote block
.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.sound.PlaySoundEvent
location, pitch, soundSource, soundType, volume
-
Method Details
-
instrument
InstrumentType instrument()The type of instrument that played theNote block
.- Returns:
- The
InstrumentType
-
notePitch
NotePitch notePitch()The pitch of the playedNote block
.- Returns:
- The
NotePitch
-