Added ActionThread

IActions can now be threaded using action.threadify()
This commit is contained in:
bigguy345 committed 2025-06-28 09:30:20 +03:00
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)
*/