From 28c1f571d25100ae6cee24bffedcee28c1ccf790 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Mon, 12 Mar 2012 10:55:00 -0400 Subject: [PATCH] [Bleeding] Added Player.isBlocking(). Addresses BUKKIT-858 --- .../java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index 3d1f27e3df..a033f1e5d9 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -266,6 +266,10 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { getHandle().closeInventory(); } + public boolean isBlocking() { + return getHandle().O(); + } + public boolean setWindowProperty(InventoryView.Property prop, int value) { return false; }