blob: 916e1d9af907b2352b5e0b908adb6d0f4ad73ed0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package cc.polyfrost.oneconfig.config.elements;
import cc.polyfrost.oneconfig.config.Config;
import cc.polyfrost.oneconfig.config.data.Mod;
import java.util.LinkedHashMap;
public class OptionPage {
public final String name;
public final Mod mod;
public final LinkedHashMap<String, OptionCategory> categories = new LinkedHashMap<>();
public OptionPage(String name, Mod mod) {
this.name = name;
this.mod = mod;
}
public void reset(Config config) {
for (OptionCategory subcategory : categories.values()) {
subcategory.reset(config);
}
}
}
|