diff options
-rw-r--r-- | src/main/java/org/bukkit/entity/HumanEntity.java | 10 |
1 files changed, 9 insertions, 1 deletions
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,13 +189,21 @@ 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 * * @return Experience required to level up |