blob: 5991428bfcb3596f004ceee635a4ab2ea4c1349d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
---
---
<pre class="flex flex-col">
<code class="whitespace-pre bg-white-light border border-gray-50 rounded-2xl text-sm">{`public class MyConfig {
@Switch(name = "Sub Switch", type = OptionType.SWITCH)
public static boolean subSwitch = false;
public MyConfig() {
super(new Mod("My Mod", ModType.UTIL_QOL), "config.json");
addDependency("subSwitch", () -> {
// TODO: Make codeblocks better lmao
});
}
}`}</code>
</pre>
|