diff --git a/java/noppes/npcs/api/handler/data/IAction.java b/java/noppes/npcs/api/handler/data/IAction.java index 434b685..327e2f1 100644 --- a/java/noppes/npcs/api/handler/data/IAction.java +++ b/java/noppes/npcs/api/handler/data/IAction.java @@ -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) */