From 9fdd2ce60dbe09ee2a44cba21f409a18fd159cdc Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 4 Sep 2016 11:59:33 +1000 Subject: SPIGOT-2656: HumanEntity#isHandRaised()Z --- src/main/java/org/bukkit/entity/HumanEntity.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/entity/HumanEntity.java b/src/main/java/org/bukkit/entity/HumanEntity.java index be7c3655..d0e0acf8 100644 --- a/src/main/java/org/bukkit/entity/HumanEntity.java +++ b/src/main/java/org/bukkit/entity/HumanEntity.java @@ -189,12 +189,20 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv public void setGameMode(GameMode mode); /** - * Check if the player is currently blocking (ie with a sword). + * Check if the player is currently blocking (ie with a shield). * * @return Whether they are blocking. */ public boolean isBlocking(); + /** + * Check if the player currently has their hand raised (ie about to begin + * blocking). + * + * @return Whether their hand is raised + */ + public boolean isHandRaised(); + /** * Get the total amount of experience required for the player to level * -- cgit v1.2.3