use of net.runelite.api.events.ExperienceChanged in project runelite by runelite.
the class RSClientMixin method experiencedChanged.
@FieldHook("skillExperiences")
@Inject
public static void experiencedChanged(int idx) {
ExperienceChanged experienceChanged = new ExperienceChanged();
Skill[] possibleSkills = Skill.values();
// We subtract one here because 'Overall' isn't considered a skill that's updated.
if (idx < possibleSkills.length - 1) {
Skill updatedSkill = possibleSkills[idx];
experienceChanged.setSkill(updatedSkill);
eventBus.post(experienceChanged);
}
}
Aggregations