forked from SKCraft/Launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SKCraftGH-481 Add Quilt loader support
... with a caveat that it may break in future due to Quilt's broken metadata
- Loading branch information
1 parent
16f44a8
commit 2a6c5ee
Showing
6 changed files
with
106 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
launcher/src/main/java/com/skcraft/launcher/model/loader/QuiltMod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.skcraft.launcher.model.loader; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Data; | ||
|
||
@Data | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class QuiltMod implements Versionable { | ||
@JsonProperty("schema_version") | ||
private int schemaVersion; | ||
|
||
@JsonProperty("quilt_loader") | ||
private Mod meta; | ||
|
||
@Override | ||
public String getVersion() { | ||
return meta.getVersion(); | ||
} | ||
|
||
@Data | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public static class Mod { | ||
private String version; | ||
|
||
@JsonProperty("intermediate_mappings") | ||
private String intermediateMappings; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
launcher/src/main/java/com/skcraft/launcher/model/loader/Versionable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.skcraft.launcher.model.loader; | ||
|
||
public interface Versionable { | ||
String getVersion(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters