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. */