Search in sources :

Example 1 with BoostedLevelChanged

use of net.runelite.api.events.BoostedLevelChanged in project runelite by runelite.

the class RSClientMixin method boostedSkillLevelsChanged.

@FieldHook("boostedSkillLevels")
@Inject
public static void boostedSkillLevelsChanged(int idx) {
    Skill[] skills = Skill.values();
    if (idx >= 0 && idx < skills.length - 1) {
        Skill updatedSkill = skills[idx];
        BoostedLevelChanged boostedLevelChanged = new BoostedLevelChanged();
        boostedLevelChanged.setSkill(updatedSkill);
        eventBus.post(boostedLevelChanged);
    }
}
Also used : Skill(net.runelite.api.Skill) BoostedLevelChanged(net.runelite.api.events.BoostedLevelChanged) Inject(net.runelite.api.mixins.Inject) FieldHook(net.runelite.api.mixins.FieldHook)

Aggregations

Skill (net.runelite.api.Skill)1 BoostedLevelChanged (net.runelite.api.events.BoostedLevelChanged)1 FieldHook (net.runelite.api.mixins.FieldHook)1 Inject (net.runelite.api.mixins.Inject)1