Skip to content

Commit

Permalink
Added Player.playNote().
Browse files Browse the repository at this point in the history
  • Loading branch information
sk89q committed May 2, 2011
1 parent 967fa10 commit b34ba41
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/org/bukkit/entity/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,18 @@ public interface Player extends HumanEntity, CommandSender {
* @return
*/
public boolean isSleepingIgnored();

/**
* Play a note for a player at a location. This requires a note block
* at the particular location (as far as the client is concerned). This
* will not work without a note block. This will not work with cake.
*
* @param loc
* @param instrument
* @param note
* @return
*/
public void playNote(Location loc, byte instrument, byte note);

/**
* Forces an update of the player's entire inventory.
Expand Down

0 comments on commit b34ba41

Please sign in to comment.