From a869b33edc95ae6de9d11d35583b2c5606a1d8d4 Mon Sep 17 00:00:00 2001 From: Kam Date: Thu, 29 May 2025 16:25:15 -0400 Subject: [PATCH] Fix Some things --- java/noppes/npcs/api/handler/IActionManager.java | 10 +++++----- java/noppes/npcs/api/handler/data/IAction.java | 2 +- .../api/handler/data/actions/IConditionalAction.java | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/java/noppes/npcs/api/handler/IActionManager.java b/java/noppes/npcs/api/handler/IActionManager.java index d0a6f95..aa4da84 100644 --- a/java/noppes/npcs/api/handler/IActionManager.java +++ b/java/noppes/npcs/api/handler/IActionManager.java @@ -11,7 +11,7 @@ import java.util.function.Supplier; /** * Manages a queue of {@link IAction} instances, allowing scheduling of delayed, - * repeating, or conditional “tasks” for NPC scripting. + * repeating, or conditional "tasks" for NPC scripting. */ public interface IActionManager { @@ -21,7 +21,7 @@ public interface IActionManager { * @param name a unique name for this action * @param maxDuration the maximum lifetime of the action in ticks * @param startAfterTicks number of ticks to wait before the first run - * @param action code to execute each time the action “fires” + * @param action code to execute each time the action "fires" * @return a fresh {@link IAction} object */ IAction create(String name, int maxDuration, int startAfterTicks, Consumer action); @@ -124,7 +124,7 @@ public interface IActionManager { * @param name a unique name for this action * @param maxDuration the maximum lifetime of the action in ticks * @param startAfterTicks number of ticks to wait before the first run - * @param action code to execute each time the action “fires” + * @param action code to execute each time the action "fires" * @return the action scheduled */ IAction scheduleAction(String name, int maxDuration, int startAfterTicks, Consumer action); @@ -216,7 +216,7 @@ public interface IActionManager { void clear(); /** - * Convenience: create & enqueue a normal repeating task. + * Convenience: create and enqueue a normal repeating task. */ default void addTask(String name, int maxDuration, int startAfterTicks, Consumer task) { scheduleAction(name, maxDuration, startAfterTicks, task); @@ -224,7 +224,7 @@ public interface IActionManager { /** * Convenience: create & enqueue a task that will fire exactly once - * after the given delay, and then auto‐complete. + * after the given delay, and then auto-complete. * * @param name a unique name for this action * @param startAfterTicks delay before it runs (in ticks) diff --git a/java/noppes/npcs/api/handler/data/IAction.java b/java/noppes/npcs/api/handler/data/IAction.java index 3fbe64a..5931c7a 100644 --- a/java/noppes/npcs/api/handler/data/IAction.java +++ b/java/noppes/npcs/api/handler/data/IAction.java @@ -5,7 +5,7 @@ import noppes.npcs.api.handler.IActionManager; import java.util.function.Consumer; /** - * Represents a single “task” that can be executed over multiple ticks, + * Represents a single "task" that can be executed over multiple ticks, * supports delayed start, limited duration, repeating intervals, data storage, * and chaining to neighboring tasks. */ diff --git a/java/noppes/npcs/api/handler/data/actions/IConditionalAction.java b/java/noppes/npcs/api/handler/data/actions/IConditionalAction.java index b365aa4..950fa41 100644 --- a/java/noppes/npcs/api/handler/data/actions/IConditionalAction.java +++ b/java/noppes/npcs/api/handler/data/actions/IConditionalAction.java @@ -39,13 +39,13 @@ public interface IConditionalAction extends IAction { /** * Note: Only for Conditional Actions - * @return the maximum number of checks before auto‐expiring, or –1 if unlimited + * @return the maximum number of checks before auto-expiring, or -1 if unlimited */ int getMaxChecks(); /** - * @param maxChecks maximum times to test condition before auto‐cancelling + * @param maxChecks maximum times to test condition before auto-cancelling * @return this action */ IConditionalAction setMaxChecks(int maxChecks);