From 88c90ef0e43e650fb2d8f44c6e2369ec72ffb7ac Mon Sep 17 00:00:00 2001 From: Vidal Date: Mon, 9 Mar 2026 18:44:15 -0300 Subject: [PATCH] Square telegraph --- java/noppes/npcs/api/ITelegraph.java | 5 +++-- java/noppes/npcs/api/handler/ITelegraphHandler.java | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/java/noppes/npcs/api/ITelegraph.java b/java/noppes/npcs/api/ITelegraph.java index 63fe339..5ca4f2b 100644 --- a/java/noppes/npcs/api/ITelegraph.java +++ b/java/noppes/npcs/api/ITelegraph.java @@ -20,6 +20,7 @@ import noppes.npcs.api.entity.IEntity; *
  • RING - A ring with inner and outer radius
  • *
  • LINE - A rectangular line in a direction
  • *
  • CONE - A cone/arc shape
  • + *
  • SQUARE - A square shape
  • *
  • POINT - A small point marker
  • * */ @@ -48,13 +49,13 @@ public interface ITelegraph { // ========================================================================== /** - * Get the radius (for CIRCLE and RING types). + * Get the radius (for CIRCLE, SQUARE and RING types). * @return the circle/ring radius in blocks */ float getRadius(); /** - * Set the radius (for CIRCLE and RING types). + * Set the radius (for CIRCLE, SQUARE and RING types). * @param radius circle/ring radius in blocks */ void setRadius(float radius); diff --git a/java/noppes/npcs/api/handler/ITelegraphHandler.java b/java/noppes/npcs/api/handler/ITelegraphHandler.java index 7bb0a69..64cfd85 100644 --- a/java/noppes/npcs/api/handler/ITelegraphHandler.java +++ b/java/noppes/npcs/api/handler/ITelegraphHandler.java @@ -68,6 +68,8 @@ public interface ITelegraphHandler { */ ITelegraph createCone(float length, float angle); + ITelegraph createSquare(float radius); + /** * Create a point telegraph. *