mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 13:24:17 -07:00
[Bleeding] Added Player.isBlocking(). Addresses BUKKIT-858
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user