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

By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
Bukkit/Spigot 2012-03-12 10:54:30 -04:00
parent 200f973bcd
commit 3bfc8591ab

View file

@ -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();
}