Package net.runelite.api.events
Class ProjectileMoved
- java.lang.Object
-
- net.runelite.api.events.ProjectileMoved
-
public class ProjectileMoved extends java.lang.ObjectAn event called whenever aProjectilehas moved towards a point.For projectiles that target the ground, this event is only triggered once (ie. AoE from Lizardman Shaman).
-
-
Constructor Summary
Constructors Constructor Description ProjectileMoved()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)LocalPointgetPosition()The target location of the projectile.ProjectilegetProjectile()The projectile being moved.intgetZ()The z-axis target location of the projectile.inthashCode()voidsetPosition(LocalPoint position)The target location of the projectile.voidsetProjectile(Projectile projectile)The projectile being moved.voidsetZ(int z)The z-axis target location of the projectile.java.lang.StringtoString()
-
-
-
Method Detail
-
getProjectile
public Projectile getProjectile()
The projectile being moved.
-
getPosition
public LocalPoint getPosition()
The target location of the projectile.
-
getZ
public int getZ()
The z-axis target location of the projectile.
-
setProjectile
public void setProjectile(Projectile projectile)
The projectile being moved.
-
setPosition
public void setPosition(LocalPoint position)
The target location of the projectile.
-
setZ
public void setZ(int z)
The z-axis target location of the projectile.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-