Added NoteBlock.play, Dispenser.dispense
This commit is contained in:
parent
ebf854c93e
commit
27b75075d6
@ -6,4 +6,12 @@ package org.bukkit.block;
|
|||||||
* @author sk89q
|
* @author sk89q
|
||||||
*/
|
*/
|
||||||
public interface Dispenser extends BlockState, ContainerBlock {
|
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();
|
||||||
}
|
}
|
||||||
|
@ -19,4 +19,12 @@ public interface NoteBlock extends BlockState {
|
|||||||
* @param note
|
* @param note
|
||||||
*/
|
*/
|
||||||
public void setNote(byte 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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user