Added NoteBlock.play, Dispenser.dispense

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot 2011-02-01 23:21:53 +00:00
parent 4f6c65d684
commit 4de2b0d48e
2 changed files with 16 additions and 0 deletions

View File

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

View File

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