Class Events.ProjectileEvent
java.lang.Object
privbot.hooks.Events.ProjectileEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intClient cycle it lands on.final intThe projectile's id in this server's numbering.final intClient cycle it was launched on.final net.runelite.api.ActorThe target, or null when it has none or it did not resolve.final BooleanTRUE when the target is the local player, FALSE when it is someone else, null when there is no resolved target (a ground-targeted projectile, or a target that could not be read): null is not "not at me".final intThe game tick it was seen on (-1 when the tick could not be read). -
Constructor Summary
ConstructorsConstructorDescriptionProjectileEvent(int id, int startCycle, int endCycle, net.runelite.api.Actor target, Boolean targetsLocalPlayer, int tick) -
Method Summary
-
Field Details
-
id
public final int idThe projectile's id in this server's numbering. -
startCycle
public final int startCycleClient cycle it was launched on. -
endCycle
public final int endCycleClient cycle it lands on. -
target
public final net.runelite.api.Actor targetThe target, or null when it has none or it did not resolve. Valid only during dispatch. -
targetsLocalPlayer
TRUE when the target is the local player, FALSE when it is someone else, null when there is no resolved target (a ground-targeted projectile, or a target that could not be read): null is not "not at me". -
tick
public final int tickThe game tick it was seen on (-1 when the tick could not be read).
-
-
Constructor Details
-
ProjectileEvent
public ProjectileEvent(int id, int startCycle, int endCycle, net.runelite.api.Actor target, Boolean targetsLocalPlayer, int tick) - Parameters:
id- projectile idstartCycle- launch cycleendCycle- landing cycletarget- target or nulltargetsLocalPlayer- seetargetsLocalPlayertick- game tick
-
-
Method Details
-
toString
-