BlockState, Metadatablepublic interface NoteBlock extends BlockState
| Modifier and Type | Method | Description |
|---|---|---|
Note |
getNote() |
Gets the note.
|
byte |
getRawNote() |
Deprecated.
Magic value
|
boolean |
play() |
Attempts to play the note at the block.
|
boolean |
play(byte instrument,
byte note) |
Deprecated.
Magic value
|
boolean |
play(Instrument instrument,
Note note) |
Plays an arbitrary note with an arbitrary instrument at the block.
|
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, updategetMetadata, hasMetadata, removeMetadata, setMetadataNote 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 represented by this block state is no longer a note block, this will return false.
java.lang.IllegalStateException - if this block state is not placed@Deprecated
boolean play(byte instrument,
byte note)
If the block represented by this block state is no longer a note block, this will return false.
instrument - Instrument IDnote - Note IDjava.lang.IllegalStateException - if this block state is not placedboolean play(Instrument instrument, Note note)
If the block represented by this block state is no longer a note block, this will return false.
instrument - The instrumentnote - The notejava.lang.IllegalStateException - if this block state is not placedNoteCopyright © 2018. All rights reserved.