From d595cde3908db318aadfda40dc8d79cc0dea46fa Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 11 Aug 2020 16:58:26 -0400 Subject: [PATCH] api: add GraphicsObject finished() Also update some of the javadoc --- .../java/net/runelite/api/GraphicsObject.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/runelite-api/src/main/java/net/runelite/api/GraphicsObject.java b/runelite-api/src/main/java/net/runelite/api/GraphicsObject.java index a9edebc90d..da3f944bfc 100644 --- a/runelite-api/src/main/java/net/runelite/api/GraphicsObject.java +++ b/runelite-api/src/main/java/net/runelite/api/GraphicsObject.java @@ -27,7 +27,7 @@ package net.runelite.api; import net.runelite.api.coords.LocalPoint; /** - * Represents a graphics object. + * Represents a graphics object/spotanim. */ public interface GraphicsObject extends Renderable { @@ -45,8 +45,18 @@ public interface GraphicsObject extends Renderable */ LocalPoint getLocation(); + /** + * Get the time this spotanim starts + * + * @return + */ int getStartCycle(); + /** + * The plane the spotanim is on. + * + * @return + */ int getLevel(); /** @@ -55,4 +65,11 @@ public interface GraphicsObject extends Renderable * @return the height */ int getHeight(); + + /** + * Checks if this spotanim is done animating + * + * @return + */ + boolean finished(); }