Class HealthBarUpdated


  • public final class HealthBarUpdated
    extends java.lang.Object
    An event called when an Actor health bar is updated from a Hitsplat.

    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 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object