public interface NoteBlock extends BlockState
Modifier and Type | Method and Description |
---|---|
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
|
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
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 IDboolean play(Instrument instrument, Note note)
instrument
- The instrumentnote
- The noteNote
Copyright © 2017. All rights reserved.