Interface ExperienceListener

  • All Superinterfaces:
    java.util.EventListener

    public interface ExperienceListener
    extends java.util.EventListener
    This is an experience listener used by scripts or other classes Events sent by a threaded experience listener, only dispatched while a script is running. Listener is stopped on script stop, and reset on new script start.
    • Method Detail

      • onGained

        default void onGained​(ExperienceEvent event)
        An event for when you gain experience
        Parameters:
        event -
      • onLevelUp

        default void onLevelUp​(ExperienceEvent event)
        An event for when you gain a level (real level)
        Parameters:
        event -
      • onLevelChange

        default void onLevelChange​(ExperienceEvent event)
        An event for when your boosted level changes (note, will fire on hitpoints change as well)
        Parameters:
        event -