Annotation Interface Subscribe


@Retention(RUNTIME) @Target(METHOD) public @interface Subscribe
Marks a listener method: @Subscribe void onTick(ClientTickEvent e). The single parameter decides which events it receives. Higher priority runs first; cancelled events still reach listeners that set receiveCancelled().
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
     
    boolean
     
  • Element Details

    • priority

      int priority
      Default:
      0
    • receiveCancelled

      boolean receiveCancelled
      Default:
      false