API reference Obsidian.API.Plugins
PluginDependency record struct
Another plugin that a plugin depends on, modelled on a NeoForge mod dependency.
public readonly record struct PluginDependency : IEquatable<PluginDependency>
In Obsidian.API.
Properties
public required string Id { get; init; }Ordering
public PluginDependencyOrdering Ordering { get; init; }Whether this plugin loads before or after the dependency. A dependency that is present always loads first unless this says PluginDependencyOrdering.Before.
Required
public bool Required { get; init; }Whether the dependency must be present. Shorthand for PluginDependency.Type being PluginDependencyType.Required or PluginDependencyType.Optional.
Side
public PluginSide Side { get; init; }The side the dependency applies to; on the other side it is ignored.
public PluginDependencyType Type { get; init; }Version
public required string Version { get; init; }The accepted versions as a NuGet or Maven version range, e.g. [1.0,2.0), or a minimum version like 1.0.