Interface ModDependency


public interface ModDependency
Represents a dependency.
  • Method Details

    • getKind

      Get the kind of dependency.
    • getModId

      String getModId()
      Returns the ID of the mod to check.
    • matches

      boolean matches(Version version)
      Returns if the version fulfills this dependency's version requirement.
      Parameters:
      version - the version to check
    • getVersionRequirements

      Collection<VersionPredicate> getVersionRequirements()
      Returns a representation of the dependency's version requirements.
      Returns:
      representation of the dependency's version requirements
    • getVersionIntervals

      List<VersionInterval> getVersionIntervals()
      Returns the version intervals covered by the dependency's version requirements.

      There may be multiple because the allowed range may not be consecutive.