From 8a52090a255cfb4fc15e08c41bf3996ebaf116c2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 4 Sep 2016 11:59:33 +1000 Subject: [PATCH] SPIGOT-2656: HumanEntity#isHandRaised()Z By: md_5 --- .../src/main/java/org/bukkit/entity/HumanEntity.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java index be7c3655d3..d0e0acf84c 100644 --- a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java +++ b/paper-api/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 *