ProjectileAPI
Client-thread projectile reads that return values instead of live projectile references.
Final classRLPlugins API
public final class ProjectileAPIMembers
Static methods
- ProjectileExfromMoved(ProjectileMoved)
Wraps an observed projectile without exposing its live client reference.
- List<ProjectileEx>getAll()
Active projectile snapshot in the local player's actual world view.
- List<ProjectileEx>getAll(int)
Pinned Client owns the projectile deque; filter each destination's explicit native view.
- intgetSoonestImpactId(int...)
ID of the matching projectile with the fewest positive remaining cycles, or -1.
fromMoved(ProjectileMoved)static
public static ProjectileEx fromMoved(ProjectileMoved event)Wraps an observed projectile without exposing its live client reference.
Parameters
event- Event.
getAll()static
public static List<ProjectileEx> getAll()Active projectile snapshot in the local player's actual world view.
getAll(int)static
public static List<ProjectileEx> getAll(int worldViewId)Pinned Client owns the projectile deque; filter each destination's explicit native view.
Parameters
worldViewId- World view id.
getSoonestImpactId(int...)static
public static int getSoonestImpactId(int... projectileIds)ID of the matching projectile with the fewest positive remaining cycles, or -1.
Parameters
projectileIds- Projectile ids.
Also allowed
Every class has these, as in plain Java.
equals, toString