Class Projectiles
- java.lang.Object
 - 
- org.dreambot.api.methods.interactive.Projectiles
 
 
- 
public class Projectiles extends java.lang.Object 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NonNull java.util.List<@NonNull Projectile>all()static @NonNull java.util.List<@NonNull Projectile>all(@NonNull java.lang.Integer... ids)static @NonNull java.util.List<@NonNull Projectile>all(@NonNull Filter<Projectile> filter)static @Nullable Projectileclosest(@NonNull java.lang.Integer... ids)static @Nullable Projectileclosest(@NonNull Filter<Projectile> filter)static @Nullable Projectileclosest(@NonNull Filter<Projectile> filter, @NonNull Tile toTile)static booleanisWithCycleCheck()When true,all()will only return projectiles with an end cycle >= the current game cycle.static booleannpcIsTargeted(NPC npc)Checks if there is a projectile targeting a givenNPCstatic booleanplayerIsTargeted(Player player)Checks if there is a projectile targeting a givenPlayerstatic voidsetWithCycleCheck(boolean withCycleCheck)When true,all()will only return projectiles with an end cycle >= the current game cycle. 
 - 
 
- 
- 
Method Detail
- 
all
public static @NonNull java.util.List<@NonNull Projectile> all()
 
- 
all
public static @NonNull java.util.List<@NonNull Projectile> all(@NonNull java.lang.Integer... ids)
 
- 
all
public static @NonNull java.util.List<@NonNull Projectile> all(@NonNull Filter<Projectile> filter)
 
- 
closest
public static @Nullable Projectile closest(@NonNull java.lang.Integer... ids)
 
- 
closest
public static @Nullable Projectile closest(@NonNull Filter<Projectile> filter)
 
- 
closest
public static @Nullable Projectile closest(@NonNull Filter<Projectile> filter, @NonNull Tile toTile)
 
- 
playerIsTargeted
public static boolean playerIsTargeted(Player player)
Checks if there is a projectile targeting a givenPlayer- Parameters:
 player-Playerto check for a projectile targeting- Returns:
 - true if there exists a projectile targeting the player index, false if none found
 
 
- 
npcIsTargeted
public static boolean npcIsTargeted(NPC npc)
Checks if there is a projectile targeting a givenNPC- Parameters:
 npc-NPCto check for a projectile targeting- Returns:
 - true if there exists a projectile targeting the npc index, false if none found
 
 
- 
isWithCycleCheck
public static boolean isWithCycleCheck()
When true,all()will only return projectiles with an end cycle >= the current game cycle. 
- 
setWithCycleCheck
public static void setWithCycleCheck(boolean withCycleCheck)
When true,all()will only return projectiles with an end cycle >= the current game cycle. 
 - 
 
 -