From 520f686006d302749c0f2f6821640f75c598f251 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 30 Mar 2021 16:23:38 -0400 Subject: [PATCH] api: add getters for actor anim and spotanim frame --- .../src/main/java/net/runelite/api/Actor.java | 47 +++++++++++++++---- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/runelite-api/src/main/java/net/runelite/api/Actor.java b/runelite-api/src/main/java/net/runelite/api/Actor.java index 9547290d04..e9773523c7 100644 --- a/runelite-api/src/main/java/net/runelite/api/Actor.java +++ b/runelite-api/src/main/java/net/runelite/api/Actor.java @@ -208,25 +208,56 @@ public interface Actor extends Renderable void setAnimation(int animation); /** - * Sets the frame of the animation the actor is performing. + * Get the frame of the animation the actor is performing * - * @param actionFrame the animation frame + * @return the frame */ - @VisibleForDevtools - void setActionFrame(int actionFrame); + int getAnimationFrame(); /** - * Gets the graphic that is currently on the player. + * Sets the frame of the animation the actor is performing. * - * @return the graphic of the actor + * @param frame the animation frame + * @deprecated use setAnimationFrame + */ + @Deprecated + void setActionFrame(int frame); + + /** + * Sets the frame of the animation the actor is performing. + * + * @param frame the animation frame + */ + void setAnimationFrame(int frame); + + /** + * Get the graphic/spotanim that is currently on the actor. + * + * @return the spotanim of the actor * @see GraphicID */ int getGraphic(); - @VisibleForDevtools + /** + * Set the graphic/spotanim that is currently on the actor. + * + * @param graphic The spotanim id + * @see GraphicID + */ void setGraphic(int graphic); - @VisibleForDevtools + /** + * Get the frame of the currently playing spotanim + * + * @return + */ + int getSpotAnimFrame(); + + /** + * Set the frame of the currently playing spotanim + * + * @param spotAnimFrame + */ void setSpotAnimFrame(int spotAnimFrame); /**