Package net.runelite.api
Interface Animation
-
public interface Animation
Represents an animation of a renderable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getDuration()
How many frames the animation lastsint[]
getFrameLengths()
How many ticks each frame is.int
getFrameStep()
How many frames to go back when loopingint
getId()
Get the id for this animationint
getNumFrames()
Get how many distinct frames this animation has.int
getRestartMode()
How this animation behaves when its restarted during playbackboolean
isMayaAnim()
Is this animation a newer-style "maya" animationvoid
setRestartMode(int restartMode)
-
-
-
Method Detail
-
getId
int getId()
Get the id for this animation- Returns:
- See Also:
AnimationID
-
isMayaAnim
boolean isMayaAnim()
Is this animation a newer-style "maya" animation
-
getNumFrames
int getNumFrames()
Get how many distinct frames this animation has. For animaya animations, this is the duration in client ticks. For classic animations, this is how many keyframes it has, not it's duration in ticks.
-
getRestartMode
int getRestartMode()
How this animation behaves when its restarted during playback
-
setRestartMode
void setRestartMode(int restartMode)
- See Also:
getRestartMode()
-
getDuration
int getDuration()
How many frames the animation lasts
-
getFrameStep
int getFrameStep()
How many frames to go back when looping
-
getFrameLengths
int[] getFrameLengths()
How many ticks each frame is.null
forisMayaAnim()
animations
-
-