Class ModrinthVersionInfo
java.lang.Object
fr.flowarg.flowupdater.download.json.ModrinthVersionInfo
- Direct Known Subclasses:
ModrinthModPackInfo
-
Constructor Summary
ConstructorsConstructorDescriptionModrinthVersionInfo(String versionId) Construct a new ModrinthVersionInfo object.ModrinthVersionInfo(String projectReference, String versionNumber) Construct a new ModrinthVersionInfo object. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull List<ModrinthVersionInfo>getModrinthVersionsFromJson(String jsonUrl) static @NotNull List<ModrinthVersionInfo>getModrinthVersionsFromJson(URL jsonUrl)
-
Constructor Details
-
ModrinthVersionInfo
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
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
-
getModrinthVersionsFromJson
@NotNull public static @NotNull List<ModrinthVersionInfo> getModrinthVersionsFromJson(String jsonUrl) -
getProjectReference
-
getVersionNumber
-
getVersionId
-