Class PathingEntity<P extends jag.oldscape.RSPathingEntity>

java.lang.Object
org.rspeer.game.adapter.Adapter<P>
org.rspeer.game.adapter.scene.Entity<P>
org.rspeer.game.adapter.scene.PathingEntity<P>
All Implemented Interfaces:
Actionable, Animable, Identifiable, Interactable, Mobile, Nameable, SceneNode
Direct Known Subclasses:
Npc, Player

public abstract class PathingEntity<P extends jag.oldscape.RSPathingEntity> extends Entity<P> implements Nameable, Identifiable, Animable, Mobile
  • Method Details

    • getOverheadPrayers

      public abstract List<OverheadPrayer> getOverheadPrayers()
    • getAnimation

      public Animation getAnimation()
      Specified by:
      getAnimation in interface Animable
    • getHitmarks

      public List<jag.oldscape.RSHitmark> getHitmarks()
    • getStance

      public Animation getStance()
    • getStanceId

      public int getStanceId()
    • getAnimationId

      public int getAnimationId()
      Specified by:
      getAnimationId in interface Animable
    • getAnimationFrame

      public int getAnimationFrame()
    • getMatrixId

      public int getMatrixId()
      Specified by:
      getMatrixId in interface SceneNode
    • getEffect

      @Deprecated public Animation getEffect()
      Deprecated.
    • isEffectActive

      public boolean isEffectActive(int... effectIds)
    • getEffects

      public List<Animation> getEffects()
    • getOrientation

      public int getOrientation()
    • getCoord

      public Coord getCoord()
      Specified by:
      getCoord in interface SceneNode
    • getCoordFine

      public CoordFine getCoordFine()
      Specified by:
      getCoordFine in interface SceneNode
    • getPosition

      public Position getPosition()
      Specified by:
      getPosition in interface SceneNode
    • getModelPosition

      @Deprecated public Position getModelPosition()
      Deprecated.
      Overrides:
      getModelPosition in class Entity<P extends jag.oldscape.RSPathingEntity>
    • getServerPosition

      @Deprecated public Position getServerPosition()
      Deprecated.
    • getDirection

      public Direction getDirection()
    • isMoving

      public boolean isMoving()
      Specified by:
      isMoving in interface Mobile
    • getTargetIndex

      public int getTargetIndex()
    • getOverheadText

      public String getOverheadText()
    • getHeadbars

      public List<jag.oldscape.RSHeadbarQueue> getHeadbars()
    • getHeadbar

      public jag.oldscape.RSHeadbarQueue getHeadbar(int id)
    • getHealthBar

      public jag.oldscape.RSHeadbarQueue getHealthBar()
    • getHealthPercent

      public int getHealthPercent()
      Note: This method will only return correctly when the health bar is present. For local player health it is recommended that you use the Health class instead
      Returns:
      The current health percent
    • getHeadbarPercent

      public int getHeadbarPercent(int headbarId)
    • getHeadbarPercent

      public int getHeadbarPercent(jag.oldscape.RSHeadbarQueue headbar)
    • isDying

      public boolean isDying()
    • getTarget

      public PathingEntity<?> getTarget()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getIndex

      public int getIndex()
    • isHealthBarVisible

      public boolean isHealthBarVisible()