CombatTarget
Plain snapshot of the player currently selected as the combat focus.
Final classRLPlugins API
public final class CombatTargetThe target resolver uses explicit API selection, local interactions, attackers, animations, graphics, and hitsplats. This object deliberately contains copied values instead of a live RuneLite Player reference.
Members
Constructors
- newCombatTarget(boolean, String, WorldPoint, int, int, String, int)
Creates a CombatTarget.
Methods
- booleanequals(Object)
Whether this and the other object are the same thing.
- intgetConfidence()
The confidence.
- intgetDistance()
The distance.
- intgetLastConfirmedTick()
The last confirmed tick.
- StringgetName()
The name.
- StringgetSource()
The source.
- WorldPointgetWorldPoint()
The world point.
- inthashCode()
A number Java uses when this is put in a set or a map.
- booleanisPresent()
Whether present.
- CombatTargetnone()
None.
CombatTarget(boolean, String, WorldPoint, int, int, String, int)
public CombatTarget(boolean present, String name, WorldPoint worldPoint, int distance, int confidence, String source, int lastConfirmedTick)Creates a CombatTarget.
Parameters
present- Present.
name- Name.
worldPoint- World point.
distance- Distance.
confidence- Confidence.
source- Source.
lastConfirmedTick- Last confirmed tick.
equals(Object)
public boolean equals(Object o)Whether this and the other object are the same thing.
Parameters
o- O.
getConfidence()
public int getConfidence()The confidence.
getDistance()
public int getDistance()The distance.
getLastConfirmedTick()
public int getLastConfirmedTick()The last confirmed tick.
getName()
public String getName()The name.
getSource()
public String getSource()The source.
getWorldPoint()
public WorldPoint getWorldPoint()The world point.
hashCode()
public int hashCode()A number Java uses when this is put in a set or a map.
isPresent()
public boolean isPresent()Whether present.
none()static
public static CombatTarget none()None.
Also allowed
Every class has these, as in plain Java.
toString