[Bleeding] Added Player.isBlocking(). Addresses BUKKIT-858

This commit is contained in:
Celtic Minstrel 2012-03-12 10:54:30 -04:00 committed by EvilSeph
parent d22352013f
commit 668c369ecc

View File

@ -139,4 +139,11 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv
* @param mode New game mode * @param mode New game mode
*/ */
public void setGameMode(GameMode 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();
} }