-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathTestConfig.java
52 lines (38 loc) · 1.24 KB
/
TestConfig.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.gtnewhorizon.gtnhlib.config;
@Config(modid = "gtnhlib", category = "Test")
@Config.LangKeyPattern(fullyQualified = true)
@Config.Sync
public class TestConfig {
public static final SubConfig subConfig = new SubConfig();
public enum TestEnum {
TEST1,
TEST2,
TEST3
}
@Config.DefaultInt(1)
public static int testInt;
@Config.DefaultBoolean(true)
public static boolean testBool;
@Config.DefaultDouble(1.0)
public static double testDouble;
@Config.DefaultString("test")
public static String testString;
@Config.DefaultEnum("TEST1")
public static TestEnum testEnum;
@Config.DefaultIntList({ 1, 2, 3 })
public static int[] testIntList;
@Config.Comment({ "This is a test comment", "It spans multiple lines" })
public static class SubConfig {
@Config.LangKey("nested.subconfig.test")
public final SubSubConfig subSubConfig = new SubSubConfig();
@Config.DefaultInt(2)
@Config.Sync(false)
public int nestedInt;
@Config.Comment("This is a test comment")
@Config.Sync(false)
public static class SubSubConfig {
@Config.DefaultInt(3)
public int nestedNestedInt;
}
}
}