mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
[Bleeding] Added Player.isBlocking(). Addresses BUKKIT-858
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
parent
200f973bcd
commit
3bfc8591ab
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue