diff options
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/internal/config/compatibility/forge/ForgeCompat.java | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/config/compatibility/forge/ForgeCompat.java b/src/main/java/cc/polyfrost/oneconfig/internal/config/compatibility/forge/ForgeCompat.java index fc5ca5e..afa5436 100644 --- a/src/main/java/cc/polyfrost/oneconfig/internal/config/compatibility/forge/ForgeCompat.java +++ b/src/main/java/cc/polyfrost/oneconfig/internal/config/compatibility/forge/ForgeCompat.java @@ -1,10 +1,12 @@ package cc.polyfrost.oneconfig.internal.config.compatibility.forge; +import cc.polyfrost.oneconfig.config.Config; import cc.polyfrost.oneconfig.config.data.Mod; import cc.polyfrost.oneconfig.config.data.ModType; import cc.polyfrost.oneconfig.config.migration.Migrator; import org.jetbrains.annotations.Nullable; +import java.lang.reflect.Field; import java.util.HashMap; public class ForgeCompat { @@ -14,18 +16,49 @@ public class ForgeCompat { public ForgeCompatMod(String name, ModType modType, @Nullable String modIcon, @Nullable Migrator migrator) { super(name, modType, modIcon, migrator); + config = new Config(this, "") { + @Override + public void initialize() { + + } + + @Override + public void save() { + + } + + @Override + public void load() { + + } + + @Override + public void openGui() { + compatMods.get(mod).run(); + } + + @Override + public Object getDefault(Field field) { + return null; + } + + @Override + public void reset() { + + } + }; } public ForgeCompatMod(String name, ModType modType, @Nullable String modIcon) { - super(name, modType, modIcon); + this(name, modType, modIcon, null); } public ForgeCompatMod(String name, ModType modType, @Nullable Migrator migrator) { - super(name, modType, migrator); + this(name, modType, null, migrator); } public ForgeCompatMod(String name, ModType modType) { - super(name, modType); + this(name, modType, null, null); } } } |