mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 20:44:44 +00:00
IActionQueue methods to IActionManager
This commit is contained in:
1 parent
7a2ce14624
commit
554eed1311
1 file changed
+20
@@ -117,6 +117,26 @@ public interface IActionManager {
|
||||
*/
|
||||
IConditionalAction create(String name, Function<IAction, Boolean> condition, Consumer<IAction> task, Function<IAction, Boolean> terminateWhen, Consumer<IAction> onTermination);
|
||||
|
||||
///////////////////////////////////////////////////
|
||||
///////////////////////////////////////////////////
|
||||
// Queues
|
||||
|
||||
IActionQueue createQueue(String name);
|
||||
|
||||
IActionQueue createQueue(String name, boolean isParallel);
|
||||
|
||||
IActionQueue getOrCreateQueue(String name);
|
||||
|
||||
IActionQueue getOrCreateQueue(String name, boolean isParallel);
|
||||
|
||||
IActionQueue getQueue(String name);
|
||||
|
||||
/**
|
||||
* @param name
|
||||
* @return True if queue successfully removed from IActionManager and cleared
|
||||
*/
|
||||
boolean removeQueue(String name);
|
||||
|
||||
///////////////////////////////////////////////////
|
||||
///////////////////////////////////////////////////
|
||||
// Sequential
|
||||
|
||||
Reference in new issue
Block a user