Package net.eternalclient.api.accessors
Class Projectiles
- java.lang.Object
-
- net.eternalclient.api.accessors.Projectiles
-
public class Projectiles extends java.lang.Object
Provides methods to retrieve a list of all projectiles or specific projectiles based on specified criteria.
-
-
Constructor Summary
Constructors Constructor Description Projectiles()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<Projectile>
all()
Retrieves all the projectiles currently active in the game.static java.util.List<Projectile>
all(int id)
Returns a list of all projectiles with the specified id.static java.util.List<Projectile>
all(java.util.function.Predicate<Projectile> predicate)
Retrieves a list of projectiles that satisfy the given predicate.
-
-
-
Method Detail
-
all
public static java.util.List<Projectile> all()
Retrieves all the projectiles currently active in the game.- Returns:
- a list of Projectile objects representing each active projectile.
-
all
public static java.util.List<Projectile> all(java.util.function.Predicate<Projectile> predicate)
Retrieves a list of projectiles that satisfy the given predicate.- Parameters:
predicate
- the predicate used to filter the projectiles- Returns:
- a list of projectiles that satisfy the given predicate
-
all
public static java.util.List<Projectile> all(int id)
Returns a list of all projectiles with the specified id.- Parameters:
id
- the id to search for- Returns:
- the list of projectiles with the specified id
-
-