Skip to content

Commit 2645140

Browse files
committed
Add JavaVersion to MinecraftVersion json
1 parent 1924f99 commit 2645140

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

json-data-utils/src/main/java/net/minecraftforge/util/data/json/MinecraftVersion.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,20 @@
1717
public class MinecraftVersion {
1818
/** The version id. */
1919
public String id;
20+
/** The Java version ({@code null} before 1.17). */
21+
public JavaVersion javaVersion;
2022
/** The artifact downloads. */
2123
public Map<String, Download> downloads;
2224
/** The required libraries. */
2325
public Library[] libraries;
2426
/** The asset index reference. */
2527
public AssetsIndexInfo assetIndex;
2628

29+
public static final class JavaVersion {
30+
public String component;
31+
public int majorVersion;
32+
}
33+
2734
public List<Lib> getLibs() {
2835
List<Lib> libs = new ArrayList<>();
2936

0 commit comments

Comments
 (0)