Class McVersionLookup
java.lang.Object
dev.lambdaurora.mcdev.api.McVersionLookup
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StringgetCurseForgeEquivalent(@NotNull String version) Returns the CurseForge equivalent of a given Minecraft version.static @NotNull StringgetRelease(@NotNull String version) Gets the release cycle associated with the given Minecraft version.static @NotNull StringgetVersionTag(String version) Returns the Minecraft version a mod user will be likely to focus on.static booleanisAlmostRelease(@NotNull String version) Returnstrueif the given Minecraft version is a release or a release candidate, orfalseotherwise.static booleanReturnstrueif the given Minecraft version is a release, orfalseotherwise.static @NotNull StringnormalizeVersion(@NotNull String version)
-
Method Details
-
isRelease
Returnstrueif the given Minecraft version is a release, orfalseotherwise.- Parameters:
version- the Minecraft version- Returns:
trueif the given Minecraft version is a release, orfalseotherwise
-
isAlmostRelease
Returnstrueif the given Minecraft version is a release or a release candidate, orfalseotherwise.- Parameters:
version- the Minecraft version- Returns:
trueif the given Minecraft version is a release or a release candidate, orfalseotherwise
-
getRelease
-
getVersionTag
Returns the Minecraft version a mod user will be likely to focus on.Mods having a tendency to update during release candidates of Minecraft releases, such updates will most likely end up used for the actual release. This method aims to get the most likely Minecraft release target.
This means that for
1.21.5-rc1the version tag will be1.21.5.- Parameters:
version- the Minecraft version- Returns:
- the Minecraft version a mod user will be likely to focus on
-
normalizeVersion
-
getCurseForgeEquivalent
Returns the CurseForge equivalent of a given Minecraft version.This means for release it will return the same version. But for snapshots, pre-releases, or release candidates it will return the version cycle appended with "
-Snapshot".- Parameters:
version- the Minecraft version- Returns:
- the CurseForge equivalent of a given Minecraft version
-