Annotation Interface OnInit


@Target(METHOD) @Retention(RUNTIME) public @interface OnInit
Annotate a static method accepting exactly one parameter of MutableTestFramework (or parent interfaces) to register that method as an on-init listener, which will be called in MutableTestFramework.init(IEventBus, ModContainer). The time when it will be called depends on the stage given as an annotation parameter.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the stage during which to run this listener.
  • Element Details

    • value

      Returns the stage during which to run this listener.
      Returns:
      the stage during which to run this listener
      Default:
      BEFORE_SETUP