publishActions

public static EnchantmentDefinitions.HostedCatalog publishActions(Plugin owner, EnchantmentCatalog catalog, Set<String> capabilities, Set<ScriptHook> queryHooks, Set<ScriptHook> actionHooks, EnchantmentProviders.Handler domainHandler)

Numeric and timed hooks share one catalog, revision, and provider lifetime.


public static EnchantmentDefinitions.HostedCatalog publishActions(Plugin owner, EnchantmentCatalog catalog, Set<String> capabilities, Set<ScriptHook> queryHooks, Set<ScriptHook> actionHooks, EnchantmentProviders.Handler domainHandler, Predicate<LivingEntity> actorPermitted)

As above, with the owner's say over who may run its actions: a timed action does not start for an entity the predicate refuses, and a running one stops once it does. Null permits everyone.