Interface PlaySoundEvent.NoteBlock
- 
- All Superinterfaces:
 Cancellable,Event,PlaySoundEvent
- Enclosing interface:
 - PlaySoundEvent
 
public static interface PlaySoundEvent.NoteBlock extends 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.NoteBlock, PlaySoundEvent.Record 
 - 
 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstrumentTypeinstrument()The type of instrument that played theNote block.NotePitchnotePitch()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 Detail
- 
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 
 
 - 
 
 -