[SPIGOT-2656] Method to check if a player is raising their shield Created: 03/Sep/16  Updated: 11/Dec/17  Resolved: 04/Sep/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Michael G. Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None


 Description   

Player#isBlocking() only returns true if the player is already blocking (5 ticks after the player has started to raise their shield).

However, in some situations it's needed to detect whether a player has started raising their shield. For this, a method behaving like the 1.10 NMS method EntityPlayer#cx() would be needed in the class HumanEntity or Player.



 Comments   
Comment by Michael G. [ 03/Sep/16 ]

If this will be added, my suggestion for the identifier of the new API method would be HumanEntity#isRaisingShield().

Generated at Fri Mar 21 08:27:02 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.