diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-01 23:21:53 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-01 23:21:53 +0000 |
commit | 27b75075d651a48f31f20114d678cbc3c8d791e1 (patch) | |
tree | 0c09ed5d17474e523e8e7fc28f0a85fb055d14db /src | |
parent | ebf854c93e57e0228d112534642d683f76a6c962 (diff) | |
download | bukkit-27b75075d651a48f31f20114d678cbc3c8d791e1.tar bukkit-27b75075d651a48f31f20114d678cbc3c8d791e1.tar.gz bukkit-27b75075d651a48f31f20114d678cbc3c8d791e1.tar.lz bukkit-27b75075d651a48f31f20114d678cbc3c8d791e1.tar.xz bukkit-27b75075d651a48f31f20114d678cbc3c8d791e1.zip |
Added NoteBlock.play, Dispenser.dispense
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/block/Dispenser.java | 8 | ||||
-rw-r--r-- | src/main/java/org/bukkit/block/NoteBlock.java | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/block/Dispenser.java b/src/main/java/org/bukkit/block/Dispenser.java index 64692514..54659539 100644 --- a/src/main/java/org/bukkit/block/Dispenser.java +++ b/src/main/java/org/bukkit/block/Dispenser.java @@ -6,4 +6,12 @@ package org.bukkit.block; * @author sk89q
*/
public interface Dispenser extends BlockState, ContainerBlock {
+ /**
+ * Attempts to dispense the contents of this block<br />
+ * <br />
+ * If the block is no longer a dispenser, this will return false
+ *
+ * @return true if successful, otherwise false
+ */
+ public boolean dispense();
}
diff --git a/src/main/java/org/bukkit/block/NoteBlock.java b/src/main/java/org/bukkit/block/NoteBlock.java index 5e318a19..1315c118 100644 --- a/src/main/java/org/bukkit/block/NoteBlock.java +++ b/src/main/java/org/bukkit/block/NoteBlock.java @@ -19,4 +19,12 @@ public interface NoteBlock extends BlockState { * @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();
}
|