Interface LevelUpListener

  • All Superinterfaces:
    com.osrsbots.orb.api.events.framework.EventListener

    public interface LevelUpListener
    extends com.osrsbots.orb.api.events.framework.EventListener
    The NetworkListener interface defines methods for handling network-related events. Classes implementing this interface can be registered as listeners to receive notifications about Server client connections and disconnections.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void onLevelUp​(net.runelite.api.Skill skill, int lvl)
      Invoked when the Player gains a level increase!
      default com.osrsbots.orb.api.events.framework.ListenerType type()
      Returns the type of this listener, indicating its association with network events.
    • Method Detail

      • type

        default com.osrsbots.orb.api.events.framework.ListenerType type()
        Returns the type of this listener, indicating its association with network events.
        Specified by:
        type in interface com.osrsbots.orb.api.events.framework.EventListener
        Returns:
        The ListenerType.LEVEL_UP.
      • onLevelUp

        void onLevelUp​(net.runelite.api.Skill skill,
                       int lvl)
        Invoked when the Player gains a level increase!
        Parameters:
        skill - The related Skill
        lvl - The new Level