From 1b751ad5d2cf02b47a033f4a3a8d612fc274fd97 Mon Sep 17 00:00:00 2001 From: bigguy345 Date: Sun, 29 Jun 2025 20:57:58 +0300 Subject: [PATCH] OVERLOAD !! --- java/noppes/npcs/api/handler/data/IAction.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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. *