Class OSRSProjectile

    • Constructor Detail

      • OSRSProjectile

        public OSRSProjectile​(long uid)
    • Method Detail

      • getId

        public int getId()
        Description copied from interface: Projectile
        An id that can be used to identify this projectile
        Specified by:
        getId in interface Identifiable
        Specified by:
        getId in interface Projectile
      • getHighPrecisionOrientation

        public int getHighPrecisionOrientation()
        Description copied from interface: Rotatable
        For internal usage only. Subject to removal without notice.
        Specified by:
        getHighPrecisionOrientation in interface Rotatable
      • getOrientationAsAngle

        public int getOrientationAsAngle()
        Description copied from interface: Rotatable
        Gets the current orientation as an angle.
        Specified by:
        getOrientationAsAngle in interface Rotatable
      • getSource

        @RS3Only
        public Actor getSource()
        Description copied from interface: Projectile
        The character that this projectile originated from. This information is only available on RS3
        Specified by:
        getSource in interface Projectile
      • getTarget

        public Actor getTarget()
        Description copied from interface: Projectile
        The character that this projectile is targeting/attacking
        Specified by:
        getTarget in interface Projectile
        Returns:
        The character if available, otherwise null
      • getModel

        public Model getModel()
        Description copied from interface: Modeled
        Gets the polygon-based model of the entity
        Specified by:
        getModel in interface Modeled
        Returns:
        the entities model, otherwise the backup if set, if neither are available null
      • 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 interface LocatableEntity
        Parameters:
        regionBase - The Coordinate base of the loaded region
      • isValid

        public boolean isValid()
        Description copied from interface: Validatable
        Verifies whether this entity is valid and still exists, typically on the world-graph
        Specified by:
        isValid in interface Validatable
        Overrides:
        isValid in class Entity
        Returns:
        true if it's still available, otherwise false
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getAnimationId

        public int getAnimationId()
        Description copied from interface: Animable
        Gets the entities current animation id
        Specified by:
        getAnimationId in interface Animable
        Returns:
        the current animation id, or if unavailable -1