api: add GraphicsObject finished()

Also update some of the javadoc
This commit is contained in:
Adam
2020-08-11 16:58:26 -04:00
parent 1d62a00596
commit d595cde390

View File

@@ -27,7 +27,7 @@ package net.runelite.api;
import net.runelite.api.coords.LocalPoint; import net.runelite.api.coords.LocalPoint;
/** /**
* Represents a graphics object. * Represents a graphics object/spotanim.
*/ */
public interface GraphicsObject extends Renderable public interface GraphicsObject extends Renderable
{ {
@@ -45,8 +45,18 @@ public interface GraphicsObject extends Renderable
*/ */
LocalPoint getLocation(); LocalPoint getLocation();
/**
* Get the time this spotanim starts
*
* @return
*/
int getStartCycle(); int getStartCycle();
/**
* The plane the spotanim is on.
*
* @return
*/
int getLevel(); int getLevel();
/** /**
@@ -55,4 +65,11 @@ public interface GraphicsObject extends Renderable
* @return the height * @return the height
*/ */
int getHeight(); int getHeight();
/**
* Checks if this spotanim is done animating
*
* @return
*/
boolean finished();
} }