Annotation Interface ForMod


@Retention(SOURCE) @Documented public @interface ForMod
Normally ModInit will infer the mod id and mod class from your @Mod annotation. However, if you have multiple mods in the same project, you need to put @ForMod on classes or packages to tell ModInit to which mod a class or package belongs. Any annotation closer to the element subject to code generation will suppress all annotations further away.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends ModX>
     
  • Element Details