File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 2020
2121package com.demonwav.mcdev.util
2222
23+ import com.demonwav.mcdev.creator.custom.model.TemplateApi
2324import com.intellij.openapi.projectRoots.JavaSdkVersion
2425
26+ @TemplateApi
2527object MinecraftVersions {
2628 val MC1_12_2 = SemanticVersion .release(1 , 12 , 2 )
2729 val MC1_14_4 = SemanticVersion .release(1 , 14 , 4 )
@@ -43,6 +45,7 @@ object MinecraftVersions {
4345 val MC1_20_5 = SemanticVersion .release(1 , 20 , 5 )
4446 val MC1_20_6 = SemanticVersion .release(1 , 20 , 6 )
4547 val MC1_21 = SemanticVersion .release(1 , 21 )
48+ val MC1_21_1 = SemanticVersion .release(1 , 21 , 1 )
4649
4750 fun requiredJavaVersion (minecraftVersion : SemanticVersion ) = when {
4851 minecraftVersion <= MC1_16_5 -> JavaSdkVersion .JDK_1_8
Original file line number Diff line number Diff line change 2020
2121package com.demonwav.mcdev.util
2222
23+ import com.demonwav.mcdev.creator.custom.model.TemplateApi
2324import com.demonwav.mcdev.util.SemanticVersion.Companion.VersionPart.PreReleasePart
2425import com.demonwav.mcdev.util.SemanticVersion.Companion.VersionPart.ReleasePart
2526import com.demonwav.mcdev.util.SemanticVersion.Companion.VersionPart.TextPart
@@ -30,6 +31,7 @@ import java.net.URLDecoder
3031 * Each constituent part (delimited by periods in a version string) contributes
3132 * to the version ranking with decreasing priority from left to right.
3233 */
34+ @TemplateApi
3335class SemanticVersion (
3436 val parts : List <VersionPart >,
3537 private val buildMetadata : String = " " ,
You can’t perform that action at this time.
0 commit comments