| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NoteBlock
Represents a note.
| Method Summary | |
|---|---|
|  Note | getNote()Gets the note. | 
|  byte | getRawNote()Gets the note. | 
|  boolean | play()Attempts to play the note at block If the block is no longer a note block, this will return false | 
|  boolean | play(byte instrument,
     byte note)Plays an arbitrary note with an arbitrary instrument | 
|  boolean | play(Instrument instrument,
     Note note)Plays an arbitrary note with an arbitrary instrument | 
|  void | setNote(Note note)Set the note. | 
|  void | setRawNote(byte note)Set the note. | 
| Methods inherited from interface org.bukkit.block.BlockState | 
|---|
| getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, setData, setRawData, setType, setTypeId, update, update | 
| Methods inherited from interface org.bukkit.metadata.Metadatable | 
|---|
| getMetadata, hasMetadata, removeMetadata, setMetadata | 
| Method Detail | 
|---|
Note getNote()
byte getRawNote()
void setNote(Note note)
note - The note.void setRawNote(byte note)
note - The note ID.boolean play()
boolean play(byte instrument,
             byte note)
instrument - Instrument IDnote - Note ID
boolean play(Instrument instrument,
             Note note)
instrument - The instrumentnote - The note
Note| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||