mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-19 11:39:50 +01:00
Added NoteBlock.play, Dispenser.dispense
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
4f6c65d684
commit
4de2b0d48e
2 changed files with 16 additions and 0 deletions
paper-api/src/main/java/org/bukkit/block
|
@ -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…
Add table
Reference in a new issue