Annotation Interface OnMain


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface OnMain
Registers the method with Events.onMain(Class, Consumer) for the event type of its only parameter. Read on the entry point before onLoad(), and on objects passed to Events.register(Object), which lists the rules for the method.