From ab33042e35baaf386af3d8fd49c85840383da657 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 2 May 2011 01:19:57 -0700 Subject: [PATCH] Added NoteBlock.play(instrument, note). By: sk89q --- .../src/main/java/org/bukkit/block/NoteBlock.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/block/NoteBlock.java b/paper-api/src/main/java/org/bukkit/block/NoteBlock.java index 547bde0204..86b4447fe8 100644 --- a/paper-api/src/main/java/org/bukkit/block/NoteBlock.java +++ b/paper-api/src/main/java/org/bukkit/block/NoteBlock.java @@ -1,5 +1,7 @@ package org.bukkit.block; +import org.bukkit.entity.Player; + /** * Represents a note. * @@ -19,6 +21,7 @@ public interface NoteBlock extends BlockState { * @param note */ public void setNote(byte note); + /** * Attempts to play the note at block
*
@@ -27,4 +30,11 @@ public interface NoteBlock extends BlockState { * @return true if successful, otherwise false */ public boolean play(); + + /** + * Plays an arbitrary note with an arbitrary instrument + * + * @return true if successful, otherwise false + */ + public boolean play(byte instrument, byte note); }