Class StopwatchCommand

java.lang.Object
net.minecraft.server.commands.StopwatchCommand

public class StopwatchCommand extends Object
  • 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

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher)
    • 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