88import com .mojang .brigadier .context .CommandContext ;
99import com .mojang .brigadier .exceptions .CommandSyntaxException ;
1010import com .mojang .brigadier .exceptions .SimpleCommandExceptionType ;
11- import net .minecraft .command .argument .EntityArgumentType ;
12- import net .minecraft .command .argument .ObjectiveArgumentType ;
13- import net .minecraft .command .argument .ScoreHolderArgumentType ;
11+ import net .minecraft .command .argument .*;
1412import net .minecraft .server .command .CommandManager ;
1513import net .minecraft .server .command .ServerCommandSource ;
1614import net .minecraft .text .TranslatableText ;
15+ import net .minecraft .util .math .BlockPos ;
16+ import net .minecraft .util .math .Vec2f ;
17+ import net .minecraft .world .chunk .Chunk ;
18+ import net .minecraft .world .chunk .ChunkStatus ;
1719
1820public class DebuggerCommand {
1921 public static final SimpleCommandExceptionType LOGGER_HIT_EXCEPTION = new SimpleCommandExceptionType (new TranslatableText ("MCFDEBUGGER: Logger hit." ));
2022 public static final SimpleCommandExceptionType CONSOLE_LOG_HIT_EXCEPTION = new SimpleCommandExceptionType (new TranslatableText ("MCFDEBUGGER: Logger hit." ));
23+
2124 public static void register (CommandDispatcher <ServerCommandSource > dispatcher ) {
2225 LiteralArgumentBuilder <ServerCommandSource > literalArgumentBuilder = CommandManager .literal ("debuggerCmd" ).
2326 requires (source -> source .hasPermissionLevel (2 ))
@@ -44,13 +47,7 @@ public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
4447 }
4548 )
4649 )
47- ))
48- .then (CommandManager .literal ("all" )
49- .executes ((CommandContext <ServerCommandSource > cmd ) -> {
50- return 1 ;
51- }
5250 )
53-
5451 )
5552 .then (CommandManager .literal ("getEntity" )
5653 .then (CommandManager .argument ("targets" , EntityArgumentType .entities ())
@@ -69,15 +66,16 @@ public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
6966 }
7067 )
7168
72- )
69+ )
7370 .then (CommandManager .literal ("log" )
7471 .executes ((CommandContext <ServerCommandSource > cmd ) -> {
7572 McfDebugger .nowCommandCount --;
7673 return DebuggerCommand .log (cmd );
7774 }
7875 )
7976
80- );
77+ )
78+ ;
8179 dispatcher .register (literalArgumentBuilder );
8280 }
8381
@@ -117,6 +115,7 @@ public static int loud(CommandContext<ServerCommandSource> cmd) throws CommandSy
117115 }
118116 return 1 ;
119117 }
118+
120119 public static int log (CommandContext <ServerCommandSource > cmd ) throws CommandSyntaxException {
121120 if (!McfDebugger .debuggerMode .equals ("none" )) {
122121 McfDebugger .nowLogFunNamespace = McfDebugger .lastCmdObj .funNamespace ;
0 commit comments