Interface StatsListener
- All Superinterfaces:
EventListener
Interface for listeners interested in changes of
Stats instances.-
Method Summary
Modifier and TypeMethodDescriptionvoidactiveSkillChanged(@NotNull String activeSkill) The player's active skill has changed.voidexperienceChanged(long exp) The player's experience has changed.voidexperienceNextLevelChanged(long expNextLevel) The player's experience to reach the next level has changed.voidgodNameChanged(@NotNull String godName) The player's god name has changed.voidrangeChanged(@NotNull String range) The player's range type has changed.voidThe stats instance is about to be reset.voidThe stats instance is about to be reset.voidsimpleWeaponSpeedChanged(boolean simpleWeaponSpeed) The "simple weapon speed" value has changed.voidstatChanged(int statNo, int value) A stat value has changed.voidtitleChanged(@NotNull String title) The player's title has changed.
-
Method Details
-
resetBefore
void resetBefore()The stats instance is about to be reset. This happens each time a new server connection ahs been established. This function is called before all stat values are reset. -
resetAfter
void resetAfter()The stats instance is about to be reset. This happens each time a new server connection ahs been established. This function is called after all stat values have been reset but before the first server message has been processed. -
statChanged
void statChanged(int statNo, int value) A stat value has changed.- Parameters:
statNo- the stat numbervalue- the new stat value
-
simpleWeaponSpeedChanged
void simpleWeaponSpeedChanged(boolean simpleWeaponSpeed) The "simple weapon speed" value has changed.- Parameters:
simpleWeaponSpeed- the new stat value
-
titleChanged
The player's title has changed.- Parameters:
title- the new title
-
godNameChanged
The player's god name has changed.- Parameters:
godName- the new godName
-
rangeChanged
The player's range type has changed.- Parameters:
range- the new range type
-
activeSkillChanged
The player's active skill has changed.- Parameters:
activeSkill- the new active skill
-
experienceChanged
void experienceChanged(long exp) The player's experience has changed.- Parameters:
exp- the new experience
-
experienceNextLevelChanged
void experienceNextLevelChanged(long expNextLevel) The player's experience to reach the next level has changed.- Parameters:
expNextLevel- the new experience
-