summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/block/NoteBlock.java
blob: 1315c118da5e401666a85db509cac25ea84d0939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package org.bukkit.block;

/**
 * Represents a note.
 * 
 * @author sk89q
 */
public interface NoteBlock extends BlockState {
    /**
     * Gets the note.
     * 
     * @return
     */
    public byte getNote();
    
    /**
     * Set the note.
     * 
     * @param note
     */
    public void setNote(byte note);
    /**
     * Attempts to play the note at block<br />
     * <br />
     * If the block is no longer a note block, this will return false
     *
     * @return true if successful, otherwise false
     */
    public boolean play();
}