mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 21:33:49 -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
|
* @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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user