Package net.fabricmc.loader.api.metadata
Interface ModDependency
public interface ModDependency
Represents a dependency.
-
Method Summary
Modifier and Type Method Description String
getModId()
Returns the ID of the mod to check.Set<VersionPredicate>
getVersionRequirements()
Returns a representation of the dependency's version requirements.boolean
matches(Version version)
Returns if the version fulfills this dependency's version requirement.
-
Method Details
-
getModId
String getModId()Returns the ID of the mod to check. -
matches
Returns if the version fulfills this dependency's version requirement.- Parameters:
version
- the version to check
-
getVersionRequirements
Set<VersionPredicate> getVersionRequirements()Returns a representation of the dependency's version requirements.- Returns:
- representation of the dependency's version requirements
-