play

public abstract boolean play()

Attempts to play the note at block

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

Return

true if successful, otherwise false


public abstract boolean play(Instrument instrument, Note note)

Plays an arbitrary note with an arbitrary instrument

Return

true if successful, otherwise false

Parameters

instrument

The instrument

note

The note

See also