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 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 Cancellable
isCancelled, setCancelledMethods inherited from interface PlaySoundEvent
location, pitch, soundSource, soundType, volume
-
Method Details
-
instrument
InstrumentType instrument()The type of instrument that played theNote block.- Returns:
- The
InstrumentType
-
notePitch
-