Package net.runelite.api
Interface Animation
-
public interface AnimationRepresents an animation of a renderable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDuration()How many frames the animation lastsint[]getFrameLengths()How many ticks each frame is.intgetFrameStep()How many frames to go back when loopingintgetId()Get the id for this animationintgetNumFrames()Get how many distinct frames this animation has.intgetRestartMode()How this animation behaves when its restarted during playbackbooleanisMayaAnim()Is this animation a newer-style "maya" animationvoidsetRestartMode(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.nullforisMayaAnim()animations
-
-