Interface Version

All Superinterfaces:
Comparable<Version>
All Known Subinterfaces:
SemanticVersion

public interface Version extends Comparable<Version>
Represents a version of a mod.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the user-friendly representation of this version.
    static Version
    parse(String string)
    Parses a version from a string notation.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • getFriendlyString

      String getFriendlyString()
      Returns the user-friendly representation of this version.
    • parse

      static Version parse(String string) throws VersionParsingException
      Parses a version from a string notation.
      Parameters:
      string - the string notation of the version
      Returns:
      the parsed version
      Throws:
      VersionParsingException - if a problem arises during version parsing