mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 19:55:07 +00:00
Overhauled IActionChain
This commit is contained in:
1 parent
d5835ddc6d
commit
1b96a3dc87
3 files changed
+19
No files matched your search
@@ -357,8 +357,15 @@ public interface IActionManager {
|
||||
*/
|
||||
void clear();
|
||||
|
||||
/**
|
||||
* @return a chain that can be used to fire Actions sequentially based on sequentialQueue
|
||||
*/
|
||||
IActionChain chain();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return a chain that can be used to fire Actions in parallel based on parallelQueue
|
||||
*/
|
||||
IActionChain parallelChain();
|
||||
|
||||
|
||||
|
||||
@@ -4,6 +4,12 @@ import java.util.function.Consumer;
|
||||
|
||||
public interface IActionChain {
|
||||
|
||||
String getName();
|
||||
|
||||
IActionChain setName(String name);
|
||||
|
||||
IActionQueue getQueue();
|
||||
|
||||
IActionChain after(int delay, String name, Consumer<IAction> task);
|
||||
|
||||
IActionChain after(int delay, Consumer<IAction> task);
|
||||
|
||||
@@ -53,4 +53,10 @@ public interface IActionQueue {
|
||||
boolean cancel(String actionName);
|
||||
|
||||
void clear();
|
||||
|
||||
/**
|
||||
* @return an IActionChain based on this queue.
|
||||
*/
|
||||
|
||||
IActionChain chain();
|
||||
}
|
||||
Reference in new issue
Block a user