Package net.runelite.api
Interface GraphicsObject
-
- All Superinterfaces:
Node,Renderable
public interface GraphicsObject extends Renderable
Represents a graphics object/spotanim.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanfinished()Checks if this spotanim is done animatingAnimationgetAnimation()The animation of the spotanimintgetAnimationFrame()The frame of the current animationintgetId()The graphics object ID.intgetLevel()The plane the spotanim is on.LocalPointgetLocation()The location of the object.intgetStartCycle()Get the time this spotanim startsWorldViewgetWorldView()Get theWorldEntitythis spotanim is on.intgetZ()Gets the z coordinatevoidsetFinished(boolean finished)Set if this spotanim is done animating.-
Methods inherited from interface net.runelite.api.Node
getHash, getNext, getPrevious
-
Methods inherited from interface net.runelite.api.Renderable
getModel, getModelHeight, setModelHeight
-
-
-
-
Method Detail
-
getWorldView
WorldView getWorldView()
Get theWorldEntitythis spotanim is on.- Returns:
-
getId
int getId()
The graphics object ID.- Returns:
- the ID
-
getLocation
LocalPoint getLocation()
The location of the object.- Returns:
- the location
-
getStartCycle
int getStartCycle()
Get the time this spotanim starts- Returns:
-
getLevel
int getLevel()
The plane the spotanim is on.- Returns:
-
getZ
int getZ()
Gets the z coordinate
-
finished
boolean finished()
Checks if this spotanim is done animating- Returns:
-
setFinished
void setFinished(boolean finished)
Set if this spotanim is done animating. If finished, the spotanim will despawn next frame.- Parameters:
finished-
-
getAnimation
@Nullable Animation getAnimation()
The animation of the spotanim- Returns:
-
getAnimationFrame
int getAnimationFrame()
The frame of the current animation- Returns:
-
-