diff options
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();
}
|