File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
neoforge-main/src/main/java/dev/compactmods/machines/command/subcommand Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2222public class CMRoomsSubcommand {
2323
2424 public static LiteralArgumentBuilder <CommandSourceStack > make () {
25+ // /cm rooms
2526 final LiteralArgumentBuilder <CommandSourceStack > subRoot = LiteralArgumentBuilder .literal ("rooms" );
2627
28+ // /cm rooms summary
2729 final var summary = Commands .literal ("summary" )
2830 .executes (CMRoomsSubcommand ::exec );
2931
32+ // /cm rooms find ...
3033 final var find = Commands .literal ("find" );
3134
35+ // /cm rooms find chunk
3236 find .then (Commands .literal ("chunk" ).then (
37+ // /cm rooms find chunk [pos]
3338 Commands .argument ("chunk" , ColumnPosArgument .columnPos ())
3439 .executes (CMRoomsSubcommand ::fetchByChunkPos )
3540 ));
3641
42+ // /cm rooms find connected_to
3743 find .then (Commands .literal ("connected_to" ).then (
44+ // /cm rooms find connected_to [pos]
3845 Commands .argument ("pos" , BlockPosArgument .blockPos ())
3946 .executes (CMRoomsSubcommand ::fetchByMachineBlock )
4047 ));
4148
49+ // /cm rooms find player
4250 find .then (Commands .literal ("player" ).then (
51+ // /cm rooms find player [@p]
4352 Commands .argument ("player" , EntityArgument .player ())
4453 .executes (CMRoomsSubcommand ::findByContainingPlayer )
4554 ));
You can’t perform that action at this time.
0 commit comments