mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 08:45:11 +00:00
Re-ordered ConditionalAction's Supplier<Boolean> terminateWhen arg
This commit is contained in:
1 parent
186c56c79e
commit
e2225453c8
3 files changed
+25
-25
No files matched your search
@@ -69,23 +69,23 @@ public class ScriptedActionManager implements IActionManager {
|
||||
}
|
||||
|
||||
@Override
|
||||
public IConditionalAction create(Supplier<Boolean> predicate, Supplier<Boolean> terminateWhen, Consumer<IAction> task) {
|
||||
return new ConditionalAction(this, predicate, terminateWhen, task);
|
||||
public IConditionalAction create(Supplier<Boolean> predicate, Consumer<IAction> task, Supplier<Boolean> terminateWhen) {
|
||||
return new ConditionalAction(this, predicate, task, terminateWhen);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IConditionalAction create(String name, Supplier<Boolean> predicate, Supplier<Boolean> terminateWhen, Consumer<IAction> task) {
|
||||
return new ConditionalAction(this, name, predicate, terminateWhen, task);
|
||||
public IConditionalAction create(String name, Supplier<Boolean> predicate, Consumer<IAction> task, Supplier<Boolean> terminateWhen) {
|
||||
return new ConditionalAction(this, name, predicate, task, terminateWhen);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IConditionalAction create(Supplier<Boolean> predicate, Supplier<Boolean> terminateWhen, Consumer<IAction> task, Consumer<IAction> onTermination) {
|
||||
return new ConditionalAction(this, predicate, terminateWhen, task, onTermination);
|
||||
public IConditionalAction create(Supplier<Boolean> predicate, Consumer<IAction> task, Supplier<Boolean> terminateWhen, Consumer<IAction> onTermination) {
|
||||
return new ConditionalAction(this, predicate, task, terminateWhen, onTermination);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IConditionalAction create(String name, Supplier<Boolean> predicate, Supplier<Boolean> terminateWhen, Consumer<IAction> task, Consumer<IAction> onTermination) {
|
||||
return new ConditionalAction(this, name, predicate, terminateWhen, task, onTermination);
|
||||
public IConditionalAction create(String name, Supplier<Boolean> predicate, Consumer<IAction> task, Supplier<Boolean> terminateWhen, Consumer<IAction> onTermination) {
|
||||
return new ConditionalAction(this, name, predicate, task, terminateWhen, onTermination);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -182,8 +182,8 @@ public class ScriptedActionManager implements IActionManager {
|
||||
}
|
||||
|
||||
@Override
|
||||
public IConditionalAction scheduleAction(String name, Supplier<Boolean> predicate, Supplier<Boolean> terminateWhen, Consumer<IAction> task) {
|
||||
return scheduleAction(new ConditionalAction(this, name, predicate, terminateWhen, task));
|
||||
public IConditionalAction scheduleAction(String name, Supplier<Boolean> predicate, Consumer<IAction> task, Supplier<Boolean> terminateWhen) {
|
||||
return scheduleAction(new ConditionalAction(this, name, predicate, task, terminateWhen));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user