Annotation Interface SubscribeEvent


@Target(METHOD) @Retention(RUNTIME) public @interface SubscribeEvent
This annotation is used to subscribe methods to ZomboidEvent types. Methods are registered in bulk via event handler classes. To register an event handler call an appropriate class in StormEventDispatcher. Once the event handler has been registered all methods belonging to the event handler annotated with SubscribeEvent will be subscribed to events they specify as method parameters. Read more about this process in StormEventDispatcher class documentation.