Class VersionDependency
java.lang.Object
com.modrinth.minotaur.dependencies.Dependency
com.modrinth.minotaur.dependencies.VersionDependency
Class for making a dependency on a specific version.
-
Constructor Summary
ConstructorsConstructorDescriptionVersionDependency(String id, DependencyType type) Creates a new version relationship.VersionDependency(String id, String type) Creates a new version relationship.VersionDependency(String projectId, String versionId, DependencyType type) Creates a new version relationship.VersionDependency(String projectId, String versionId, String type) Creates a new version relationship. -
Method Summary
Methods inherited from class com.modrinth.minotaur.dependencies.Dependency
fromNew, toNew
-
Constructor Details
-
VersionDependency
Creates a new version relationship.- Parameters:
id- The ID of the version to create a dependency with.type- The type of dependency being created.
-
VersionDependency
Creates a new version relationship.- Parameters:
id- The ID of the version to create a dependency with.type- The type of dependency being created.
-
VersionDependency
Creates a new version relationship.- Parameters:
projectId- The ID of the project to create a dependency with.versionId- The ID of the version to create a dependency with.type- The type of dependency being created.
-
VersionDependency
Creates a new version relationship.- Parameters:
projectId- The ID of the project to create a dependency with.versionId- The ID of the version to create a dependency with.type- The type of dependency being created.
-
-
Method Details
-
getProjectId
- Returns:
projectId
-
getVersionId
- Returns:
versionId
-