EnchantmentDefinitions

public final class EnchantmentDefinitions

Publishes provider-owned catalogs through the existing cross-shading bridge. No Lua state crosses it.

Types

Link copied to clipboard
public final class HostedCatalog implements AutoCloseable

Functions

Link copied to clipboard
public static EnchantmentDefinitions.HostedCatalog publish(Plugin owner, EnchantmentCatalog catalog, Set<String> capabilities, EnchantmentProviders.Handler domainHandler)
Link copied to clipboard
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.
Link copied to clipboard
public static EnchantmentDefinitions.HostedCatalog publishQueries(Plugin owner, EnchantmentCatalog catalog, Set<String> capabilities, Set<ScriptHook> queryHooks, EnchantmentProviders.Handler domainHandler)
Publishes query execution through the same provider endpoint and revision as definitions.
Link copied to clipboard
public static EnchantmentItems.Resolved resolve(String id)
Item operations use this local typed resolver; peer definitions contain JDK values only.