Package net.runelite.api
Interface GraphicsObject
-
- All Superinterfaces:
Node
,Renderable
- All Known Subinterfaces:
RuneLiteObject
public interface GraphicsObject extends Renderable
Represents a graphics object/spotanim.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
finished()
Checks if this spotanim is done animatingAnimation
getAnimation()
The animation of the spotanimint
getAnimationFrame()
The frame of the current animationint
getId()
The graphics object ID.int
getLevel()
The plane the spotanim is on.LocalPoint
getLocation()
The location of the object.int
getStartCycle()
Get the time this spotanim startsint
getZ()
Gets the z coordinatevoid
setFinished(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
-
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:
-
-