From 4f34a0de6a0100adf79cac5b92198aa432debc4c Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 20 Mar 2021 18:58:28 -0400 Subject: [PATCH] game object: add size x/y methods --- .../src/main/java/net/runelite/api/GameObject.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/runelite-api/src/main/java/net/runelite/api/GameObject.java b/runelite-api/src/main/java/net/runelite/api/GameObject.java index 2dbf259795..0d81a48e46 100644 --- a/runelite-api/src/main/java/net/runelite/api/GameObject.java +++ b/runelite-api/src/main/java/net/runelite/api/GameObject.java @@ -35,6 +35,19 @@ import net.runelite.api.coords.Angle; */ public interface GameObject extends TileObject { + /** + * Get the size of this object, in tiles, on the x axis + * + * @return + */ + int sizeX(); + + /** + * Get the size of this object, in tiles, on the y axis + * + * @return + */ + int sizeY(); /** * Gets the minimum x and y scene coordinate pair for this game object.