Class PathingEntity<P extends 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 RSPathingEntity> extends Entity<P> implements Nameable, Identifiable, Animable, Mobile
  • Method Details

    • getAnimation

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

      public Animation getStance()
    • getMatrixId

      public int getMatrixId()
    • getEffect

      @Deprecated public Animation getEffect()
      Deprecated.
    • getEffects

      public List<Animation> getEffects()
    • getOrientation

      public int getOrientation()
    • getPreciseOrientation

      public int getPreciseOrientation()
    • getPosition

      public Position getPosition()
      Specified by:
      getPosition in interface SceneNode
      Specified by:
      getPosition in class Entity<P extends RSPathingEntity>
    • getServerPosition

      @Deprecated public Position getServerPosition()
      Deprecated.
    • getDirection

      public Direction getDirection()
    • getPreciseDirection

      public Direction getPreciseDirection()
    • isMoving

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

      public int getTargetIndex()
    • getOverheadText

      public String getOverheadText()
    • getHealthBar

      public RSHealthBar 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
    • isDying

      public boolean isDying()
    • getTarget

      public PathingEntity<?> getTarget()
    • equals

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

      public int getIndex()
    • isHealthBarVisible

      public boolean isHealthBarVisible()