public interface IModRegistryProvides safe feature and loaded-mod discovery.
Members
ApiVersionGets the semantic version of the active CMAPI public API.propertyFeaturesGets the feature identifiers available in this game session.propertySupportsFeatureReturns whether the given CMAPI runtime feature is available.methodIsLoadedReturns whether a mod with the exact unique ID is loaded.methodIsLoadedReturns whether a mod is loaded at or above the requested semantic version.methodGetVersionGets a loaded mod's version, or null if it is absent.methodApiVersion
propertystring ApiVersionGets the semantic version of the active CMAPI public API.
Features
propertyIReadOnlyList<string> FeaturesGets the feature identifiers available in this game session.
SupportsFeature
methodbool SupportsFeature(string featureId)Returns whether the given CMAPI runtime feature is available.
IsLoaded
methodbool IsLoaded(string uniqueId)Returns whether a mod with the exact unique ID is loaded.
IsLoaded
methodbool IsLoaded(string uniqueId, string minimumVersion)Returns whether a mod is loaded at or above the requested semantic version.
GetVersion
methodstring? GetVersion(string uniqueId)Gets a loaded mod's version, or null if it is absent.