From 792aac8a96b29837059ce90eb02ed1ef864eaa83 Mon Sep 17 00:00:00 2001 From: bigguy345 Date: Sun, 6 Jul 2025 23:59:30 +0300 Subject: [PATCH] Added onStart(task) and onDone(task) for IAction --- java/noppes/npcs/api/handler/data/IAction.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/java/noppes/npcs/api/handler/data/IAction.java b/java/noppes/npcs/api/handler/data/IAction.java index fe08cb0..31335fb 100644 --- a/java/noppes/npcs/api/handler/data/IAction.java +++ b/java/noppes/npcs/api/handler/data/IAction.java @@ -46,6 +46,20 @@ public interface IAction { */ int getCount(); + /** + * + * @param task Fires right after action gets scheduled at duration 0 + * @return + */ + IAction onStart(Consumer task); + + /** + * + * @param task Fires right before a marked done action gets removed from it's IActionQueue + * @return + */ + IAction onDone(Consumer task); + /** * @return how many ticks have elapsed since this action actually began (excluding start delay) */