Class OSRSSpotAnimation
- java.lang.Object
-
- com.runemate.game.api.hybrid.entities.Entity
-
- com.runemate.game.api.osrs.entities.OSRSCacheModelEntity
-
- com.runemate.game.api.osrs.entities.OSRSSpotAnimation
-
- All Implemented Interfaces:
Animable
,Identifiable
,Interactable
,Locatable
,Modeled
,Renderable
,LocatableEntity
,SpotAnimation
,Validatable
public class OSRSSpotAnimation extends OSRSCacheModelEntity implements SpotAnimation
-
-
Constructor Summary
Constructors Constructor Description OSRSSpotAnimation(long uid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAnimationId()
Gets the entities current animation idSpotAnimationDefinition
getDefinition()
Coordinate.HighPrecision
getHighPrecisionPosition(Coordinate regionBase)
Gets the high precision position using the region base as the coordinate to offset from.int
getId()
Model
getModel()
Gets the polygon-based model of the entityCoordinate
getPosition(Coordinate regionBase)
Gets the position using the region base as the coordinate to offset from.java.lang.String
toString()
-
Methods inherited from class com.runemate.game.api.osrs.entities.OSRSCacheModelEntity
click, contains, getArea, getInteractionPoint, getVisibility, interact, isHovered, isVisible
-
Methods inherited from class com.runemate.game.api.hybrid.entities.Entity
equals, hasDynamicBounds, hashCode, isValid, releaseUidOnGarbageCollection, render, render, setBackupModel, setBackupModel, setBackupModel, setForcedModel, setForcedModel, setForcedModel
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Interactable
click, contains, getInteractionPoint, getInteractionPoint, getVisibility, hasDynamicBounds, hover, interact, interact, interact, interact, interact, interact, isHovered, isVisible
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Locatable
distanceTo, distanceTo, getLocalPosition
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.LocatableEntity
getArea, getArea, getHighPrecisionPosition, getPosition
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Modeled
setBackupModel, setBackupModel, setBackupModel, setForcedModel, setForcedModel, setForcedModel
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Renderable
render, render
-
Methods inherited from interface com.runemate.game.api.hybrid.util.Validatable
isValid
-
-
-
-
Method Detail
-
getId
public int getId()
- Specified by:
getId
in interfaceIdentifiable
-
getPosition
public Coordinate getPosition(Coordinate regionBase)
Description copied from interface:LocatableEntity
Gets the position using the region base as the coordinate to offset from. For optimization.- Specified by:
getPosition
in interfaceLocatableEntity
- Parameters:
regionBase
- The Coordinate base of the loaded region
-
getHighPrecisionPosition
public Coordinate.HighPrecision getHighPrecisionPosition(Coordinate regionBase)
Description copied from interface:LocatableEntity
Gets the high precision position using the region base as the coordinate to offset from. For optimization.- Specified by:
getHighPrecisionPosition
in interfaceLocatableEntity
- Parameters:
regionBase
- The Coordinate base of the loaded region
-
getDefinition
public SpotAnimationDefinition getDefinition()
- Specified by:
getDefinition
in interfaceSpotAnimation
-
getModel
public Model getModel()
Description copied from interface:Modeled
Gets the polygon-based model of the entity
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getAnimationId
public int getAnimationId()
Description copied from interface:Animable
Gets the entities current animation id- Specified by:
getAnimationId
in interfaceAnimable
- Returns:
- the current animation id, or if unavailable -1
-
-