|
||||||||||
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()
Deprecated. Magic value |
boolean |
play()
Attempts to play the note at block |
boolean |
play(byte instrument,
byte note)
Deprecated. Magic value |
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)
Deprecated. Magic value |
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, update |
Methods inherited from interface org.bukkit.metadata.Metadatable |
---|
getMetadata, hasMetadata, removeMetadata, setMetadata |
Method Detail |
---|
Note getNote()
@Deprecated byte getRawNote()
void setNote(Note note)
note
- The note.@Deprecated void setRawNote(byte note)
note
- The note ID.boolean play()
If the block is no longer a note block, this will return false
@Deprecated 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 |