ModOnly

The @ModOnly annotation is as simple as the name suggests:
It only registers a ZenClass if the provided mod is loaded.

Example

Crafttweaker Test Project ModOnly

@ModOnly(value = "mcp")
@ZenClass(value = "crafttweaker.tests.modOnly")
@ZenRegister
public class ModOnlyWiki {
    @ZenMethod
    public static void print() {
        CraftTweakerAPI.logInfo("print issued");
    }
}

What classes can be annotated || Additional Info