Class Dependency
java.lang.Object
com.modrinth.minotaur.dependencies.Dependency
- Direct Known Subclasses:
ModDependency,VersionDependency
Represents the superclass for
ModDependency and VersionDependency.-
Method Summary
Modifier and TypeMethodDescriptionstatic DependencyfromNew(masecla.modrinth4j.model.version.ProjectVersion.ProjectDependency newDep) masecla.modrinth4j.model.version.ProjectVersion.ProjectDependencytoNew(masecla.modrinth4j.main.ModrinthAPI api)
-
Method Details
-
toNew
public masecla.modrinth4j.model.version.ProjectVersion.ProjectDependency toNew(masecla.modrinth4j.main.ModrinthAPI api) - Parameters:
api-ModrinthAPIinstance- Returns:
- a
ProjectVersion.ProjectDependencyinstance from aDependency
-
fromNew
public static Dependency fromNew(masecla.modrinth4j.model.version.ProjectVersion.ProjectDependency newDep) - Parameters:
newDep- theProjectVersion.ProjectDependencyto convert to aDependency- Returns:
- a converted
Dependency
-