Class ModrinthVersionInfo

java.lang.Object
fr.flowarg.flowupdater.download.json.ModrinthVersionInfo
Direct Known Subclasses:
ModrinthModPackInfo

public class ModrinthVersionInfo extends Object
  • Constructor Details

    • ModrinthVersionInfo

      public ModrinthVersionInfo(String projectReference, String versionNumber)
      Construct a new ModrinthVersionInfo object.
      Parameters:
      projectReference - the project reference can be slug or id.
      versionNumber - the version number (and NOT the version name unless they are the same).
    • ModrinthVersionInfo

      public ModrinthVersionInfo(String versionId)
      Construct a new ModrinthVersionInfo object. This constructor doesn't need a project reference because we can access the version without any project information.
      Parameters:
      versionId - the version id.
  • Method Details

    • getModrinthVersionsFromJson

      @NotNull public static @NotNull List<ModrinthVersionInfo> getModrinthVersionsFromJson(URL jsonUrl)
    • getModrinthVersionsFromJson

      @NotNull public static @NotNull List<ModrinthVersionInfo> getModrinthVersionsFromJson(String jsonUrl)
    • getProjectReference

      public String getProjectReference()
    • getVersionNumber

      public String getVersionNumber()
    • getVersionId

      public String getVersionId()