Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.block.NoteBlock Interface Reference
Inheritance diagram for org.bukkit.block.NoteBlock:
org.bukkit.block.BlockState org.bukkit.metadata.Metadatable

Public Member Functions

Note getNote ()
 
byte getRawNote ()
 
void setNote (Note note)
 
void setRawNote (byte note)
 
boolean play ()
 
boolean play (byte instrument, byte note)
 
boolean play (Instrument instrument, Note note)
 
- Public Member Functions inherited from org.bukkit.block.BlockState
Block getBlock ()
 
MaterialData getData ()
 
Material getType ()
 
int getTypeId ()
 
byte getLightLevel ()
 
World getWorld ()
 
int getX ()
 
int getY ()
 
int getZ ()
 
Location getLocation ()
 
Location getLocation (Location loc)
 
Chunk getChunk ()
 
void setData (MaterialData data)
 
void setType (Material type)
 
boolean setTypeId (int type)
 
boolean update ()
 
boolean update (boolean force)
 
boolean update (boolean force, boolean applyPhysics)
 
byte getRawData ()
 
void setRawData (byte data)
 

Detailed Description

Represents a note.

Definition at line 9 of file NoteBlock.java.

Member Function Documentation

Note org.bukkit.block.NoteBlock.getNote ( )

Gets the note.

Returns
The note.
byte org.bukkit.block.NoteBlock.getRawNote ( )

Gets the note.

Returns
The note ID.
Deprecated:
Magic value
boolean org.bukkit.block.NoteBlock.play ( )

Attempts to play the note at block

If the block is no longer a note block, this will return false

Returns
true if successful, otherwise false
boolean org.bukkit.block.NoteBlock.play ( byte  instrument,
byte  note 
)

Plays an arbitrary note with an arbitrary instrument

Parameters
instrumentInstrument ID
noteNote ID
Returns
true if successful, otherwise false
Deprecated:
Magic value
boolean org.bukkit.block.NoteBlock.play ( Instrument  instrument,
Note  note 
)

Plays an arbitrary note with an arbitrary instrument

Parameters
instrumentThe instrument
noteThe note
Returns
true if successful, otherwise false
See also
Instrument Note
void org.bukkit.block.NoteBlock.setNote ( Note  note)

Set the note.

Parameters
noteThe note.
void org.bukkit.block.NoteBlock.setRawNote ( byte  note)

Set the note.

Parameters
noteThe note ID.
Deprecated:
Magic value

The documentation for this interface was generated from the following file: