Package org.bukkit.block
Interface NoteBlock
-
- All Superinterfaces:
BlockState
,Metadatable
@Deprecated public interface NoteBlock extends BlockState
Deprecated.not a tile entity in future versions of MinecraftRepresents a captured state of a note block.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Note
getNote()
Deprecated.Gets the note.byte
getRawNote()
Deprecated.Magic valueboolean
play()
Deprecated.Attempts to play the note at the block.boolean
play(byte instrument, byte note)
Deprecated.Magic valueboolean
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-
Methods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
-
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
-
-
-
Method Detail
-
getNote
Note getNote()
Deprecated.Gets the note.- Returns:
- The note.
-
getRawNote
@Deprecated byte getRawNote()
Deprecated.Magic valueGets the note.- Returns:
- The note ID.
-
setNote
void setNote(Note note)
Deprecated.Set the note.- Parameters:
note
- The note.
-
setRawNote
@Deprecated void setRawNote(byte note)
Deprecated.Magic valueSet the note.- Parameters:
note
- The note ID.
-
play
boolean play()
Deprecated.Attempts to play the note at the block.If the block represented by this block state is no longer a note block, this will return false.
- Returns:
- true if successful, otherwise false
- Throws:
IllegalStateException
- if this block state is not placed
-
play
@Deprecated boolean play(byte instrument, byte note)
Deprecated.Magic valuePlays an arbitrary note with an arbitrary instrument at the block.If the block represented by this block state is no longer a note block, this will return false.
- Parameters:
instrument
- Instrument IDnote
- Note ID- Returns:
- true if successful, otherwise false
- Throws:
IllegalStateException
- if this block state is not placed
-
play
boolean play(Instrument instrument, Note note)
Deprecated.Plays an arbitrary note with an arbitrary instrument at the block.If the block represented by this block state is no longer a note block, this will return false.
- Parameters:
instrument
- The instrumentnote
- The note- Returns:
- true if successful, otherwise false
- Throws:
IllegalStateException
- if this block state is not placed- See Also:
Note
-
-