mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 17:47:32 +00:00
Added an extra IConditionalAction scheduling method
This commit is contained in:
1 parent
284017ef80
commit
efa272706f
2 files changed
+7
-1
No files matched your search
@@ -186,6 +186,12 @@ public class ScriptedActionManager implements IActionManager {
|
||||
return scheduleAction(new ConditionalAction(this, name, predicate, task, terminateWhen));
|
||||
}
|
||||
|
||||
@Override
|
||||
public IConditionalAction scheduleAction(String name, Supplier<Boolean> predicate, Consumer<IAction> task, Supplier<Boolean> terminateWhen, Consumer<IAction> onTermination) {
|
||||
return scheduleAction(new ConditionalAction(this, name, predicate, task, terminateWhen, onTermination));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public IConditionalAction scheduleAction(IConditionalAction action) {
|
||||
conditionalActions.add(action);
|
||||
|
||||
Reference in new issue
Block a user