From f383fc3037221791e2f22a272580df9be013810f Mon Sep 17 00:00:00 2001 From: Kam Date: Wed, 4 Feb 2026 14:44:53 -0500 Subject: [PATCH] Update IAbility.java --- java/noppes/npcs/api/ability/IAbility.java | 26 ++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/java/noppes/npcs/api/ability/IAbility.java b/java/noppes/npcs/api/ability/IAbility.java index 280a850..6cc55f9 100644 --- a/java/noppes/npcs/api/ability/IAbility.java +++ b/java/noppes/npcs/api/ability/IAbility.java @@ -127,15 +127,37 @@ public interface IAbility { void setLockMovementType(int type); /** - * Check if movement is locked during the WINDUP phase. + * Get the lock type for this ability. + * @return 0=MOVEMENT, 1=ROTATION, 2=BOTH + */ + int getLockTypeOrdinal(); + + /** + * Set the lock type for this ability. + * @param type 0=MOVEMENT, 1=ROTATION, 2=BOTH + */ + void setLockTypeOrdinal(int type); + + /** + * Check if movement (pathfinding/motion) is locked during the WINDUP phase. */ boolean isMovementLockedDuringWindup(); /** - * Check if movement is locked during the ACTIVE phase. + * Check if movement (pathfinding/motion) is locked during the ACTIVE phase. */ boolean isMovementLockedDuringActive(); + /** + * Check if rotation (yaw/pitch) is locked during the WINDUP phase. + */ + boolean isRotationLockedDuringWindup(); + + /** + * Check if rotation (yaw/pitch) is locked during the ACTIVE phase. + */ + boolean isRotationLockedDuringActive(); + /** * Check if this ability is currently being executed. */