mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 17:47:32 +00:00
INFINITE OVERLOADS !!!!!
This commit is contained in:
1 parent
f86db24def
commit
74198534af
4 files changed
+97
-66
No files matched your search
@@ -39,6 +39,10 @@ public class ScriptedActionManager implements IActionManager {
|
||||
return new Action(this, t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAction create(int maxDuration, int delay, Consumer<IAction> task) {
|
||||
return new Action(this, maxDuration, delay, task);
|
||||
}
|
||||
@Override
|
||||
public IAction create(String name, int maxDuration, int delay, Consumer<IAction> task) {
|
||||
return new Action(this, name, maxDuration, delay, task);
|
||||
@@ -115,6 +119,11 @@ public class ScriptedActionManager implements IActionManager {
|
||||
return scheduleAction(create(delay, task));
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAction scheduleAction(int maxDuration, int delay, Consumer<IAction> task) {
|
||||
return scheduleAction(create(maxDuration, delay, task));
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAction scheduleAction(String name, Consumer<IAction> task) {
|
||||
return scheduleAction(create(name, task));
|
||||
@@ -245,6 +254,22 @@ public class ScriptedActionManager implements IActionManager {
|
||||
///////////////////////////////////////////////////
|
||||
///////////////////////////////////////////////////
|
||||
// Conditionals
|
||||
@Override
|
||||
public IConditionalAction scheduleAction(Supplier<Boolean> condition, Consumer<IAction> task) {
|
||||
return scheduleAction(new ConditionalAction(this, condition, task));
|
||||
}
|
||||
|
||||
@Override
|
||||
public IConditionalAction scheduleAction(Supplier<Boolean> condition, Consumer<IAction> task, Supplier<Boolean> terminateWhen) {
|
||||
return scheduleAction(new ConditionalAction(this, condition, task, terminateWhen));
|
||||
}
|
||||
|
||||
@Override
|
||||
public IConditionalAction scheduleAction(Supplier<Boolean> condition, Consumer<IAction> task, Supplier<Boolean> terminateWhen, Consumer<IAction> onTermination) {
|
||||
return scheduleAction(new ConditionalAction(this, condition, task, terminateWhen, onTermination));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public IConditionalAction scheduleAction(String name, Supplier<Boolean> condition, Consumer<IAction> task) {
|
||||
return scheduleAction(new ConditionalAction(this, name, condition, task));
|
||||
|
||||
Reference in new issue
Block a user