Class Projectiles
java.lang.Object
com.botwithus.bot.api.entities.Projectiles
In-flight projectile query facade (v17+). Singleton per
GameAPI;
obtain via api.projectiles().
Projectiles carry no per-id type definition — the API has no
SpotAnimType and NXTCacheLibrary ships no spot-anim decoder —
so unlike Npcs / SceneObjects / GroundItems this
facade holds no definition cache and EntityQuery.named(String) never
matches. Filter on EntityQuery.withId(int) (the graphic id),
position, or a predicate.
Queries are anchored on the projectile's impact tile — see the
position note on Projectile.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classQuery subclass — wires the snapshot stream toEntityQuery. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Projectiles
-
-
Method Details
-
query
Start a fluent query. -
all
Every in-flight projectile this tick. -
incoming
Projectiles aimed at the local player. SeeProjectile.targetsLocalPlayer()for the index-space caveat. -
nearestIncoming
The incoming projectile landing nearest the local player, ornullwhen nothing is inbound.
-