File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/main/java/org/polyfrost/example/command Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 11package org .polyfrost .example .command ;
22
33import org .polyfrost .example .ExampleMod ;
4- import cc .polyfrost .oneconfig .utils .commands .annotations .Command ;
5- import cc .polyfrost .oneconfig .utils .commands . annotations . Main ;
4+ import org .polyfrost .oneconfig .api .commands .v1 . factories . annotated .Command ;
5+ import org .polyfrost .oneconfig .utils .v1 . dsl . ScreensKt ;
66
77/**
88 * An example command implementing the Command api of OneConfig.
99 * Registered in ExampleMod.java with `CommandManager.INSTANCE.registerCommand(new ExampleCommand());`
1010 *
1111 * @see Command
12- * @see Main
1312 * @see ExampleMod
1413 */
1514@ Command (value = ExampleMod .ID , description = "Access the " + ExampleMod .NAME + " GUI." )
1615public class ExampleCommand {
17- @ Main
16+
17+ @ Command
1818 private void handle () {
19- ExampleMod .INSTANCE . config . openGui ( );
19+ ScreensKt . openUI ( ExampleMod .getConfig () );
2020 }
21- }
21+
22+ }
You can’t perform that action at this time.
0 commit comments