Class ModrinthVersionChecker
java.lang.Object
me.hsgamer.hscore.checker.modrinth.ModrinthVersionChecker
- All Implemented Interfaces:
VersionChecker
A version checker for Modrinth
-
Constructor Summary
ConstructorDescriptionCreate a version checkerModrinthVersionChecker
(String id, List<String> loaders, List<String> gameVersions, boolean featured) Create a version checkerModrinthVersionChecker
(String id, List<String> loaders, List<String> gameVersions, boolean featured, UserAgent userAgent) Create a version checkerModrinthVersionChecker
(String id, UserAgent userAgent) Create a version checker -
Method Summary
-
Constructor Details
-
ModrinthVersionChecker
public ModrinthVersionChecker(String id, List<String> loaders, List<String> gameVersions, boolean featured, UserAgent userAgent) Create a version checker- Parameters:
id
- the id / slug of the projectloaders
- the loaders to filter forgameVersions
- the game versions to filter forfeatured
- whether to only show featured versionsuserAgent
- the user agent
-
ModrinthVersionChecker
public ModrinthVersionChecker(String id, List<String> loaders, List<String> gameVersions, boolean featured) Create a version checker- Parameters:
id
- the id / slug of the projectloaders
- the loaders to filter forgameVersions
- the game versions to filter forfeatured
- whether to only show featured versions
-
ModrinthVersionChecker
Create a version checker- Parameters:
id
- the id / slug of the projectuserAgent
- the user agent
-
ModrinthVersionChecker
Create a version checker- Parameters:
id
- the id / slug of the project
-
-
Method Details
-
getVersion
Description copied from interface:VersionChecker
Get the version- Specified by:
getVersion
in interfaceVersionChecker
- Returns:
- the version
-