Skip to content

Commit 13f82ea

Browse files
committed
Document the rooms subcommand more
[no ci]
1 parent dcd6fbf commit 13f82ea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

neoforge-main/src/main/java/dev/compactmods/machines/command/subcommand/CMRoomsSubcommand.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,33 @@
2222
public 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
));

0 commit comments

Comments
 (0)