From efce1a99b75dc6931e406b77bf188115befb54e2 Mon Sep 17 00:00:00 2001 From: Kam Date: Mon, 9 Mar 2026 17:50:46 -0400 Subject: [PATCH] Documentation to Square Telegraph --- java/noppes/npcs/api/ITelegraph.java | 4 ++-- java/noppes/npcs/api/handler/ITelegraphHandler.java | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/java/noppes/npcs/api/ITelegraph.java b/java/noppes/npcs/api/ITelegraph.java index 5ca4f2b..7fb9129 100644 --- a/java/noppes/npcs/api/ITelegraph.java +++ b/java/noppes/npcs/api/ITelegraph.java @@ -33,14 +33,14 @@ public interface ITelegraph { /** * Get the telegraph type. * - * @return Type name: "CIRCLE", "RING", "LINE", "CONE", or "POINT" + * @return Type name: "CIRCLE", "RING", "LINE", "CONE", "SQUARE", or "POINT" */ String getType(); /** * Set the telegraph type. * - * @param type Type name: "circle", "ring", "line", "cone", or "point" (case insensitive) + * @param type Type name: "circle", "ring", "line", "cone", "square", or "point" (case insensitive) */ void setType(String type); diff --git a/java/noppes/npcs/api/handler/ITelegraphHandler.java b/java/noppes/npcs/api/handler/ITelegraphHandler.java index 64cfd85..8afb515 100644 --- a/java/noppes/npcs/api/handler/ITelegraphHandler.java +++ b/java/noppes/npcs/api/handler/ITelegraphHandler.java @@ -68,6 +68,13 @@ public interface ITelegraphHandler { */ ITelegraph createCone(float length, float angle); + /** + * Create a square telegraph. + * The square is axis-aligned by default and can be rotated with yaw when spawned. + * + * @param radius The half-size of the square (distance from center to edge) + * @return A new telegraph configuration + */ ITelegraph createSquare(float radius); /** @@ -80,7 +87,7 @@ public interface ITelegraphHandler { /** * Create a telegraph by type name. * - * @param type Type name: "circle", "ring", "line", "cone", "point" (case insensitive) + * @param type Type name: "circle", "ring", "line", "cone", "square", "point" (case insensitive) * @return A new telegraph configuration, or null if type is invalid */ ITelegraph create(String type);