diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-04-27 18:36:51 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-04-27 18:36:51 +0200 |
commit | ee479dddc391a2cfb961ba1751e14884e933d3ff (patch) | |
tree | ad88f551255b0069dfa46ec4aa4814d7f49e97c7 /src/main/java/io/polyfrost/oneconfig/config/data | |
parent | a93ec306e83f51e121441cb00f04cd9bb36d6951 (diff) | |
download | OneConfig-ee479dddc391a2cfb961ba1751e14884e933d3ff.tar.gz OneConfig-ee479dddc391a2cfb961ba1751e14884e933d3ff.tar.bz2 OneConfig-ee479dddc391a2cfb961ba1751e14884e933d3ff.zip |
Option page start
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/config/data')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/config/data/Mod.java | 2 | ||||
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/config/data/OptionPage.java | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/config/data/Mod.java b/src/main/java/io/polyfrost/oneconfig/config/data/Mod.java index 435fb32..bd6c3f3 100644 --- a/src/main/java/io/polyfrost/oneconfig/config/data/Mod.java +++ b/src/main/java/io/polyfrost/oneconfig/config/data/Mod.java @@ -8,7 +8,7 @@ public class Mod { public final String creator; public final String version; public Config config; - public OptionPage defaultPage = new OptionPage(""); + public OptionPage defaultPage = new OptionPage("", this); /** * @param name Friendly name of the mod diff --git a/src/main/java/io/polyfrost/oneconfig/config/data/OptionPage.java b/src/main/java/io/polyfrost/oneconfig/config/data/OptionPage.java index 021786d..8dcd9a1 100644 --- a/src/main/java/io/polyfrost/oneconfig/config/data/OptionPage.java +++ b/src/main/java/io/polyfrost/oneconfig/config/data/OptionPage.java @@ -1,5 +1,6 @@ package io.polyfrost.oneconfig.config.data; + import io.polyfrost.oneconfig.config.interfaces.BasicOption; import java.util.ArrayList; @@ -7,6 +8,7 @@ import java.util.HashMap; public class OptionPage { public final String name; + public final Mod mod; /** * Depth 1 = categories * Depth 2 = subcategories @@ -14,7 +16,8 @@ public class OptionPage { */ public final HashMap<String, HashMap<String, ArrayList<BasicOption>>> categories = new HashMap<>(); - public OptionPage(String name) { + public OptionPage(String name, Mod mod) { this.name = name; + this.mod = mod; } } |