Package org.dreambot.api.script.listener
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 Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onClientEvent(ExperienceEvent event)
default void
onGained(ExperienceEvent event)
An event for when you gain experiencedefault void
onLevelChange(ExperienceEvent event)
An event for when your boosted level changes (note, will fire on hitpoints change as well)default void
onLevelUp(ExperienceEvent event)
An event for when you gain a level (real level)
-
-
-
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
-
-
onClientEvent
default void onClientEvent(ExperienceEvent event)
-
-