Package net.minecraft.server.commands
Class StopwatchCommand
java.lang.Object
net.minecraft.server.commands.StopwatchCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypestatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypestatic final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcreateStopwatch(CommandSourceStack pSource, Identifier pId) private static intqueryStopwatch(CommandSourceStack pSource, Identifier pId, double pScale) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static intremoveStopwatch(CommandSourceStack pSource, Identifier pId) private static intrestartStopwatch(CommandSourceStack pSource, Identifier pId)
-
Field Details
-
ERROR_ALREADY_EXISTS
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_ALREADY_EXISTS -
ERROR_DOES_NOT_EXIST
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_DOES_NOT_EXIST -
SUGGEST_STOPWATCHES
public static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> SUGGEST_STOPWATCHES
-
-
Constructor Details
-
StopwatchCommand
public StopwatchCommand()
-
-
Method Details
-
register
-
createStopwatch
private static int createStopwatch(CommandSourceStack pSource, Identifier pId) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
queryStopwatch
private static int queryStopwatch(CommandSourceStack pSource, Identifier pId, double pScale) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
restartStopwatch
private static int restartStopwatch(CommandSourceStack pSource, Identifier pId) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removeStopwatch
private static int removeStopwatch(CommandSourceStack pSource, Identifier pId) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-