Search in sources :

Example 1 with GameStateChanged

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

the class RSClientMixin method gameStateChanged.

@FieldHook("gameState")
@Inject
public static void gameStateChanged(int idx) {
    GameStateChanged gameStateChange = new GameStateChanged();
    gameStateChange.setGameState(client.getGameState());
    eventBus.post(gameStateChange);
}
Also used : GameStateChanged(net.runelite.api.events.GameStateChanged) Inject(net.runelite.api.mixins.Inject) FieldHook(net.runelite.api.mixins.FieldHook)

Aggregations

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