load

public static EnchantmentCatalog load(String namespace, Path directory, Set<ScriptHook> supportedHooks)


public static EnchantmentCatalog load(String namespace, Path directory, Set<ScriptHook> supportedHooks, Predicate<Path> ownsDefinition)

Selection runs after duplicate resolution, so hosts cannot load a rejected duplicate through another owner.