Interface Projectile
-
- All Superinterfaces:
Animable
,Identifiable
,Interactable
,Locatable
,LocatableEntity
,Modeled
,Renderable
,Rotatable
,Validatable
- All Known Implementing Classes:
OSRSProjectile
public interface Projectile extends Identifiable, LocatableEntity, Rotatable, Modeled, Animable
An entity moving over the world-graph that is targeting an Actor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description @Nullable SpotAnimationDefinition
getDefinition()
default int
getId()
Deprecated.use the definition's id.int
getImpactCycle()
int
getLaunchCycle()
Coordinate
getLaunchPosition()
Actor
getSource()
Deprecated.Never worked as intended, purpose of hook was misunderstood.int
getSpotAnimationId()
@Nullable Actor
getTarget()
The character that this projectile is targeting/attackingboolean
hasLaunched()
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Animable
getAnimationId
-
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, getHighPrecisionPosition, getPosition, getPosition
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Modeled
getModel, 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.entities.details.Rotatable
getHighPrecisionOrientation, getOrientationAsAngle, isFacing
-
Methods inherited from interface com.runemate.game.api.hybrid.util.Validatable
isValid
-
-
-
-
Method Detail
-
getId
@Deprecated default int getId()
Deprecated.use the definition's id.An id that can be used to identify this projectile- Specified by:
getId
in interfaceIdentifiable
-
getSource
@Deprecated Actor getSource()
Deprecated.Never worked as intended, purpose of hook was misunderstood.The character that this projectile originated from. This information is only available on RS3
-
getTarget
@Nullable @Nullable Actor getTarget()
The character that this projectile is targeting/attacking- Returns:
- The character if available, otherwise null
-
getSpotAnimationId
int getSpotAnimationId()
-
getDefinition
@Nullable @Nullable SpotAnimationDefinition getDefinition()
-
getLaunchCycle
@OSRSOnly int getLaunchCycle()
-
getImpactCycle
int getImpactCycle()
-
getLaunchPosition
@OSRSOnly Coordinate getLaunchPosition()
-
hasLaunched
boolean hasLaunched()
-
-