BlockState
, Metadatable
@Deprecated public interface NoteBlock extends BlockState
Modifier and Type | Method | Description |
---|---|---|
Note |
getNote() |
Deprecated.
Gets the note.
|
byte |
getRawNote() |
Deprecated.
Magic value
|
boolean |
play() |
Deprecated.
Attempts to play the note at the block.
|
boolean |
play(byte instrument,
byte note) |
Deprecated.
Magic value
|
boolean |
play(Instrument instrument,
Note note) |
Deprecated.
Plays an arbitrary note with an arbitrary instrument at the block.
|
void |
setNote(Note note) |
Deprecated.
Set the note.
|
void |
setRawNote(byte note) |
Deprecated.
Magic value
|
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, 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 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 placedNote
Copyright © 2018. All rights reserved.