mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 10:44:47 +00:00
Adjusted ActionQueue killing logic
This commit is contained in:
1 parent
049253f1fd
commit
efe7261681
1 file changed
+9
-1
@@ -36,11 +36,19 @@ public interface IActionQueue {
|
||||
IActionQueue killWhenEmpty(boolean killWhenEmpty);
|
||||
|
||||
/**
|
||||
* @param ticks to set killAfterTicks
|
||||
* @param ticks to kill queue after when queue has no active tasks
|
||||
* If an IAction is scheduled during the kill process, process is aborted
|
||||
* @return
|
||||
*/
|
||||
IActionQueue killAfter(int ticks);
|
||||
|
||||
boolean isKilled();
|
||||
|
||||
/**
|
||||
* @return kills queue and removes it from IActionManager immediately
|
||||
*/
|
||||
IActionQueue kill();
|
||||
|
||||
IAction schedule(IAction action);
|
||||
|
||||
void schedule(IAction... actions);
|
||||
|
||||
Reference in new issue
Block a user