minified-modrinth/com.dervarex.minified.modrinth.versions
VersionsClient
classSource
public final class VersionsClient
extends AbstractModrinthClient- Superclasses
- AbstractModrinthClient
Constructors
public VersionsClient(Modrinth modrinth)| Parameters | ||
|---|---|---|
modrinth | Modrinth | |
Methods
List<VersionDependency> dependencies(String)Version fromHash(String)List<Version> fromHashes(String[])Version get(String)List<Version> getByProject(String)List<Version> getByProject(String, VersionSearchOptions)List<Version> getMany(String[])Version getVersionByNumber(String, String)List<Version> latestFromHashes(String[])List<Version> latestFromHashes(VersionSearchOptions, String[])Version resolveLatest(String, VersionSearchOptions)public List<VersionDependency> dependencies(String versionId)| Parameters | ||
|---|---|---|
versionId | String | |
| Returns | ||
List<VersionDependency> | The dependencies of the version, modrinth has no extra route for that, they come with the version | |
public Version fromHash(String hash)public List<Version> fromHashes(String... hashes)public Version get(String id)public List<Version> getByProject(String projectIdOrSlug)public List<Version> getByProject(String projectIdOrSlug, VersionSearchOptions options)| Parameters | ||
|---|---|---|
projectIdOrSlug | String | |
options | VersionSearchOptions | |
| Returns | ||
List<Version> | ||
public List<Version> getMany(String... ids)public Version getVersionByNumber(String projectIdOrSlug, String versionNumber)public List<Version> latestFromHashes(String... hashes)public List<Version> latestFromHashes(VersionSearchOptions options, String... hashes)| Parameters | ||
|---|---|---|
options | VersionSearchOptions | Only the game versions and loaders are used |
hashes | String[] | |
| Returns | ||
List<Version> | The newest version matching the options of the project each file belongs to | |
public Version resolveLatest(String projectIdOrSlug, VersionSearchOptions options)| Parameters | ||
|---|---|---|
projectIdOrSlug | String | |
options | VersionSearchOptions | |
| Returns | ||
Version | ||
Inherited methods
From AbstractModrinthClient13 methods
buildUrl() encode() getArray() getArray() getList() getObject() getObject() getRaw() postObject() query() readJsonArray() readJsonObject() request()
Used by
Methods of other types that accept or return VersionsClient.