From fb2e2b7dcdb18ce5bca00d431611217af3bdd4fc Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 2 May 2011 01:51:48 -0700 Subject: [PATCH] Added method to fake a block change request for a player. Alas, my Justin Bieber playing sign can work again! By: sk89q --- .../main/java/org/bukkit/entity/Player.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index a5b33fc709..52f230ba52 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -141,6 +141,26 @@ public interface Player extends HumanEntity, CommandSender { * @return */ public void playNote(Location loc, byte instrument, byte note); + + /** + * Send a block change. This fakes a block change packet for a user at + * a certain location. This will not actually change the world in any way. + * + * @param loc + * @param material + * @param data + */ + public void sendBlockChange(Location loc, Material material, byte data); + + /** + * Send a block change. This fakes a block change packet for a user at + * a certain location. This will not actually change the world in any way. + * + * @param loc + * @param material + * @param data + */ + public void sendBlockChange(Location loc, int material, byte data); /** * Forces an update of the player's entire inventory.