* When providing an API, the interface and implementation must be public.
* When providing an API, the interface and implementation must be public.
−
* When mapping an API to a custom interface using <samp>GetApi<T></samp> (i.e. not using the mod's original interface), only the API interface itself can be proxied. Method return values and parameters must be types that both mods have access to (''e.g.,'' built-in types like <samp>bool</samp>, SMAPI types like <samp>IManifest</samp>, or game types like <samp>GameLocation</samp>).
+
* When mapping an API to a custom interface using <samp>GetApi<T></samp> (''i.e.,'' not using the mod's original interface), only the API interface itself can be proxied. Method return values and parameters must be types that both mods have access to (''e.g.,'' built-in types like <samp>bool</samp>, SMAPI types like <samp>IManifest</samp>, or game types like <samp>GameLocation</samp>).