diff --git a/java/noppes/npcs/api/handler/data/IAction.java b/java/noppes/npcs/api/handler/data/IAction.java index fe29858..fea10d0 100644 --- a/java/noppes/npcs/api/handler/data/IAction.java +++ b/java/noppes/npcs/api/handler/data/IAction.java @@ -122,18 +122,6 @@ public interface IAction { */ IAction before(IAction before); - /** - * Note: Only for Conditional Actions - * @return how many times this conditional action has tested its predicate - */ - int getCheckCount(); - - /** - * Note: Only for Conditional Actions - * @return the maximum number of checks before auto‐expiring, or –1 if unlimited - */ - int getMaxChecks(); - IAction before(String name, int maxDuration, int delay, Consumer t); IAction before(String name, int delay, Consumer t); diff --git a/java/noppes/npcs/api/handler/data/actions/IConditionalAction.java b/java/noppes/npcs/api/handler/data/actions/IConditionalAction.java index acea284..35a46c0 100644 --- a/java/noppes/npcs/api/handler/data/actions/IConditionalAction.java +++ b/java/noppes/npcs/api/handler/data/actions/IConditionalAction.java @@ -31,6 +31,19 @@ public interface IConditionalAction extends IAction { */ boolean wasTaskExecuted(); + /** + * Note: Only for Conditional Actions + * @return how many times this conditional action has tested its predicate + */ + int getCheckCount(); + + /** + * Note: Only for Conditional Actions + * @return the maximum number of checks before auto‐expiring, or –1 if unlimited + */ + int getMaxChecks(); + + /** * @param maxChecks maximum times to test predicate before auto‐cancelling * @return this action