File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
modern/templates/java/io/github/notenoughupdates/moulconfig/test Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ package io.github.notenoughupdates.moulconfig.test
2+
3+ import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean
4+ import io.github.notenoughupdates.moulconfig.annotations.ConfigOption
5+
6+ class InnerCategory {
7+
8+ @ConfigEditorBoolean
9+ @ConfigOption(name = " Test Option" , desc = " Test toggle" )
10+ var shouldTestToggle: Boolean = false
11+
12+ }
Original file line number Diff line number Diff line change 1+ package io.github.notenoughupdates.moulconfig.test
2+
3+ import io.github.notenoughupdates.moulconfig.annotations.Category
4+
5+ class TestCategoryB {
6+
7+ @Category(name = " Test Inner Category" , desc = " " )
8+ var innerCategory: InnerCategory = InnerCategory ()
9+
10+ }
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ class TestConfig : Config() {
1212 override fun isValidRunnable (runnableId : Int ): Boolean {
1313 return false
1414 }
15+
1516 @Category(name = " Cat a" , desc = " Cat a desc" )
1617 var testCategoryA: TestCategoryA = TestCategoryA ()
18+
19+ @Category(name = " Cat b" , desc = " Cat b desc" )
20+ var testCategoryB: TestCategoryB = TestCategoryB ()
1721}
You can’t perform that action at this time.
0 commit comments