mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 00:39:40 +00:00
Overhauled IActionChain
This commit is contained in:
1 parent
c976b488f1
commit
c10b37f01d
5 files changed
+47
-46
No files matched your search
@@ -1,7 +1,9 @@
|
||||
package noppes.npcs.controllers.data.action;
|
||||
|
||||
import noppes.npcs.api.handler.data.IAction;
|
||||
import noppes.npcs.api.handler.data.IActionChain;
|
||||
import noppes.npcs.api.handler.data.IActionQueue;
|
||||
import noppes.npcs.controllers.data.action.chain.ActionChain;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ConcurrentLinkedDeque;
|
||||
@@ -233,4 +235,10 @@ public class ActionQueue implements IActionQueue {
|
||||
queue.forEach((act) -> act.kill());
|
||||
queue.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public IActionChain chain() {
|
||||
return new ActionChain(manager, this, isParallel ? "parallel#" : "sequential#");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user