Subscribe
Marks a method that receives an event, such as GameTick.
AnnotationRuneLiteRuneLite docs
public @interface SubscribeThe method returns void and takes the event as its only parameter. RuneLite calls it on the game's client thread while your plugin is on, where every call in this reference is safe.
Type only. Put it on a method. It has no settings you can use.
Example
@Subscribe
public void onGameTick(GameTick tick) {
// Runs once per game tick while the plugin is on.
}