Forge has a specific annotation for packages that are supposed to hold your API, it's the net.minecraftforge.fml.common.API one. A package annotated with this annotation tells forge that everything within that package is a part of a public API provided by a specific mod. It is used internally in forge when for example deciding whether to remove methods annotated with @Optional and it is also used in sorting the mod list. It also provides some information to the addonmakers such as the version of the API. To annotate a package create a package-info.java file in your api package and annotate the package line in it with the annotation. This is not strictly necessarry but is generally a good practice.
Forge has a specific annotation for packages that are supposed to hold your API, it's the net.minecraftforge.fml.common.API one. A package annotated with this annotation tells forge that everything within that package is a part of a public API provided by a specific mod. It is used internally in forge when for example deciding whether to remove methods annotated with @Optional and it is also used in sorting the mod list. It also provides some information to the addonmakers such as the version of the API. To annotate a package create a package-info.java file in your api package and annotate the package line in it with the annotation. This is not strictly necessarry but is generally a good practice.