mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 18:50:51 +01:00
Added NoteBlock.play(instrument, note).
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
f1e98caef2
commit
ab33042e35
1 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
package org.bukkit.block;
|
package org.bukkit.block;
|
||||||
|
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a note.
|
* Represents a note.
|
||||||
*
|
*
|
||||||
|
@ -19,6 +21,7 @@ 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 />
|
* Attempts to play the note at block<br />
|
||||||
* <br />
|
* <br />
|
||||||
|
@ -27,4 +30,11 @@ public interface NoteBlock extends BlockState {
|
||||||
* @return true if successful, otherwise false
|
* @return true if successful, otherwise false
|
||||||
*/
|
*/
|
||||||
public boolean play();
|
public boolean play();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plays an arbitrary note with an arbitrary instrument
|
||||||
|
*
|
||||||
|
* @return true if successful, otherwise false
|
||||||
|
*/
|
||||||
|
public boolean play(byte instrument, byte note);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue