mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 08:24:47 +00:00
Implemented actionThread to IConditionalActions
This commit is contained in:
1 parent
e14021b4da
commit
34ed095423
1 file changed
+7
@@ -43,6 +43,13 @@ public interface IConditionalAction extends IAction {
|
||||
*/
|
||||
int getMaxChecks();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return True if condition provided by {{@link #terminateWhen(Supplier)}} is satisfied
|
||||
* Can be called directly in the IAction's task.
|
||||
* Can only be true once, as action is marked done immediately after.
|
||||
*/
|
||||
boolean isTerminated();
|
||||
|
||||
/**
|
||||
* @param maxChecks maximum times to test condition before auto-cancelling
|
||||
|
||||
Reference in new issue
Block a user