Some fixes

This commit is contained in:
Kam committed 2025-04-28 03:24:38 -04:00
1 parent d70face418
commit 9590f9ffff
2 files changed
+13 -12

No files matched your search

@@ -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<IAction> t);
IAction before(String name, int delay, Consumer<IAction> t);
@@ -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