Class VersionDependency

java.lang.Object
com.modrinth.minotaur.dependencies.Dependency
com.modrinth.minotaur.dependencies.VersionDependency

public class VersionDependency extends Dependency
Class for making a dependency on a specific version.
  • Constructor Details

    • VersionDependency

      public VersionDependency(String id, DependencyType type)
      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

      public VersionDependency(String id, String type)
      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

      public VersionDependency(String projectId, String versionId, DependencyType type)
      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

      public VersionDependency(String projectId, String versionId, String type)
      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

      public String getProjectId()
      Returns:
      projectId
    • getVersionId

      public String getVersionId()
      Returns:
      versionId