Class Projectile

    • Method Detail

      • getLegacyProjectile

        public org.tribot.api2007.types.RSProjectile getLegacyProjectile()
      • getOrientation

        public int getOrientation()
      • getGraphicId

        public int getGraphicId()
      • isMoving

        public boolean isMoving()
      • isTargetingMe

        public boolean isTargetingMe()
      • getStart

        public WorldTile getStart()
        Gets the start tile of this projectile
        Returns:
        the start tile of this projectile
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getDestination

        public WorldTile getDestination()
        Gets the expected destination tile of this projectile. For AoE attacks, this will generally be some tile. For projectiles targeting a player or NPC, this will generally be the position of that target.
        Returns:
        the expected destination tile of this projectile
      • adjustCameraTo

        public boolean adjustCameraTo()
        Description copied from interface: Positionable
        Moves the camera to a position where the given entity or position is in view. Takes into account distance. Uses an algorithm to move both the angle and rotation of the camera simultaneously at pseudo-random intervals to simulate human camera movement.
        Specified by:
        adjustCameraTo in interface Positionable
        Returns:
        True if the camera moved. False otherwise.
      • getModel

        public java.util.Optional<Model> getModel()
        Description copied from interface: Modellable
        Gets the entity model
        Specified by:
        getModel in interface Modellable
        Returns:
        the entity model, or an empty optional if the model could not be obtained (ex. not visible on screen)
      • toString

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