Interface Version

All Known Subinterfaces:
SemanticVersion

public interface Version
Represents a version of a mod.
See Also:
ModMetadata.getVersion()
  • Method Summary

    Modifier and Type Method Description
    String getFriendlyString()
    Returns the user-friendly representation of this version.
    static Version parse​(String string)
    Parses a version from a string notation.
  • 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