diff --git a/java/noppes/npcs/api/handler/data/IAction.java b/java/noppes/npcs/api/handler/data/IAction.java index 3a2f214..3a341b2 100644 --- a/java/noppes/npcs/api/handler/data/IAction.java +++ b/java/noppes/npcs/api/handler/data/IAction.java @@ -42,8 +42,8 @@ public interface IAction { /** * @return the maximum number of ticks this action is allowed to run before auto-terminating * - * P.S: If the max duration is reached and this IAction is threaded using {@link #threadify()} and the thread is paused using any of the pausing methods, - * the thread is forcibly resumed and finishes the task execution once. + * P.S: If max duration is reached and this IAction's thread (created using {@link #threadify()}) is paused by any of the pausing methods, + * the thread is forcibly resumed and finishes the task execution. */ int getMaxDuration(); @@ -167,6 +167,8 @@ public interface IAction { IAction parallel(String name, int startAfterTicks, Consumer task); + IAction parallel(String name, int maxDuration, int delay, Consumer t); + /** * Enqueue another action immediately after this one. *