From 124d369d47a75b6f6d197c178490721625a79041 Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 2 May 2011 01:29:38 -0700 Subject: [PATCH] Added Player.playNote(). --- src/main/java/org/bukkit/entity/Player.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 88bf7d1a..a5b33fc7 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -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.