Search in sources :

Example 1 with NpcActionChanged

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

the class RSNpcCompositionMixin method actionsHook.

@FieldHook("actions")
@Inject
public void actionsHook(int idx) {
    NpcActionChanged npcActionChanged = new NpcActionChanged();
    npcActionChanged.setNpcComposition(this);
    npcActionChanged.setIdx(idx);
    eventBus.post(npcActionChanged);
}
Also used : NpcActionChanged(net.runelite.api.events.NpcActionChanged) Inject(net.runelite.api.mixins.Inject) FieldHook(net.runelite.api.mixins.FieldHook)

Aggregations

NpcActionChanged (net.runelite.api.events.NpcActionChanged)1 FieldHook (net.runelite.api.mixins.FieldHook)1 Inject (net.runelite.api.mixins.Inject)1