批注接口 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.
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static enum 
     
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    返回 the stage during which to run this listener。
  • 元素详细资料

    • value

      返回 the stage during which to run this listener。
      返回:
      the stage during which to run this listener
      默认值:
      BEFORE_SETUP