diff options
Diffstat (limited to 'src/main/java/org/bukkit/entity/HumanEntity.java')
-rw-r--r-- | src/main/java/org/bukkit/entity/HumanEntity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/HumanEntity.java b/src/main/java/org/bukkit/entity/HumanEntity.java index 92201d4a..7ad0cf83 100644 --- a/src/main/java/org/bukkit/entity/HumanEntity.java +++ b/src/main/java/org/bukkit/entity/HumanEntity.java @@ -139,4 +139,11 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv * @param mode New game mode */ public void setGameMode(GameMode mode); + + /** + * Check if the player is currently blocking (ie with a sword). + * + * @return Whether they are blocking. + */ + public boolean isBlocking(); } |