mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 05:41:26 +01:00
Added NoteBlock.play, Dispenser.dispense
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
4f6c65d684
commit
4de2b0d48e
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user