mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-30 13:13:58 +01:00
Refactor curse plugin a little
Put models in the `model` package, yknow
This commit is contained in:
parent
43ca90f74d
commit
b7178a10b6
@ -2,6 +2,8 @@ package com.skcraft.plugin.curse;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.skcraft.launcher.util.HttpRequest;
|
import com.skcraft.launcher.util.HttpRequest;
|
||||||
|
import com.skcraft.plugin.curse.model.CurseFileMetadata;
|
||||||
|
import com.skcraft.plugin.curse.model.CurseMod;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@ -6,6 +6,8 @@ import com.skcraft.launcher.builder.FileInfoScanner;
|
|||||||
import com.skcraft.launcher.builder.PropertiesApplicator;
|
import com.skcraft.launcher.builder.PropertiesApplicator;
|
||||||
import com.skcraft.launcher.model.modpack.FileInstall;
|
import com.skcraft.launcher.model.modpack.FileInstall;
|
||||||
import com.skcraft.launcher.model.modpack.Manifest;
|
import com.skcraft.launcher.model.modpack.Manifest;
|
||||||
|
import com.skcraft.plugin.curse.model.CurseFileMetadata;
|
||||||
|
import com.skcraft.plugin.curse.model.CurseMod;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.java.Log;
|
import lombok.extern.java.Log;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import com.beust.jcommander.internal.Lists;
|
|||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.skcraft.launcher.builder.DirectoryWalker;
|
import com.skcraft.launcher.builder.DirectoryWalker;
|
||||||
import com.skcraft.plugin.curse.CurseApi;
|
import com.skcraft.plugin.curse.CurseApi;
|
||||||
import com.skcraft.plugin.curse.CurseMod;
|
import com.skcraft.plugin.curse.model.CurseMod;
|
||||||
import com.skcraft.plugin.curse.model.CurseProject;
|
import com.skcraft.plugin.curse.model.CurseProject;
|
||||||
import com.skcraft.plugin.curse.model.LoadedMod;
|
import com.skcraft.plugin.curse.model.LoadedMod;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.skcraft.plugin.curse;
|
package com.skcraft.plugin.curse.model;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
@ -1,4 +1,4 @@
|
|||||||
package com.skcraft.plugin.curse;
|
package com.skcraft.plugin.curse.model;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import com.skcraft.launcher.model.modpack.Feature;
|
import com.skcraft.launcher.model.modpack.Feature;
|
@ -2,7 +2,6 @@ package com.skcraft.plugin.curse.model;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.skcraft.plugin.curse.CurseMod;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package com.skcraft.plugin.curse.model;
|
package com.skcraft.plugin.curse.model;
|
||||||
|
|
||||||
import com.skcraft.plugin.curse.CurseMod;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
Loading…
Reference in New Issue
Block a user