Package net.runelite.api.events
Class HealthBarUpdated
- java.lang.Object
-
- net.runelite.api.events.HealthBarUpdated
-
public final class HealthBarUpdated extends java.lang.ObjectAn event called when anActorhealth bar is updated from aHitsplat.This event is called when the health bar first appears and when the client gets new information about the health bar of the actor. It does not fire when the health bar disappears. The event will still fire even if the health ratio did not change for example from a 0 hitsplat.
-
-
Constructor Summary
Constructors Constructor Description HealthBarUpdated(Actor actor, int healthRatio)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ActorgetActor()The actor the hitsplat was applied to.intgetHealthRatio()The updated health ratio.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
HealthBarUpdated
public HealthBarUpdated(Actor actor, int healthRatio)
-
-
Method Detail
-
getActor
public Actor getActor()
The actor the hitsplat was applied to.
-
getHealthRatio
public int getHealthRatio()
The updated health ratio.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-