Class StopwatchCommand
java.lang.Object
net.minecraft.server.commands.StopwatchCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DynamicCommandExceptionTypestatic final DynamicCommandExceptionTypestatic final SuggestionProvider<CommandSourceStack> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcreateStopwatch(CommandSourceStack source, Identifier id) private static intqueryStopwatch(CommandSourceStack source, Identifier id, double scale) static voidregister(CommandDispatcher<CommandSourceStack> dispatcher) private static intremoveStopwatch(CommandSourceStack source, Identifier id) private static intrestartStopwatch(CommandSourceStack source, Identifier id)
-
Field Details
-
ERROR_ALREADY_EXISTS
-
ERROR_DOES_NOT_EXIST
-
SUGGEST_STOPWATCHES
-
-
Constructor Details
-
StopwatchCommand
public StopwatchCommand()
-
-
Method Details
-
register
-
createStopwatch
private static int createStopwatch(CommandSourceStack source, Identifier id) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
queryStopwatch
private static int queryStopwatch(CommandSourceStack source, Identifier id, double scale) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
restartStopwatch
private static int restartStopwatch(CommandSourceStack source, Identifier id) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
removeStopwatch
private static int removeStopwatch(CommandSourceStack source, Identifier id) throws CommandSyntaxException - Throws:
CommandSyntaxException
-