mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 09:04:44 +00:00
Added ActionThread
IActions can now be threaded using action.threadify()
This commit is contained in:
1 parent
bbbea878fe
commit
3efd012ae0
1 file changed
+10
@@ -94,10 +94,20 @@ public interface IAction {
|
||||
|
||||
/**
|
||||
* @param ticks pauses action for this number of ticks (any subsequent action is paused too)
|
||||
* If action is threaded using threadify(), sleeps the thread.
|
||||
* @return
|
||||
*/
|
||||
IAction pauseFor(int ticks);
|
||||
|
||||
IAction pauseFor(long millis);
|
||||
|
||||
boolean isPaused();
|
||||
|
||||
/**
|
||||
* Creates a new thread for task to run into. Allows for pausing and sleeping the thread.
|
||||
*/
|
||||
void threadify();
|
||||
|
||||
/**
|
||||
* @return the next action in the queue (or null if none or at end)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user