Class DifficultyCommand

java.lang.Object
net.minecraft.server.command.DifficultyCommand

public class DifficultyCommand
extends Object
  • Field Details

    • FAILURE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILURE_EXCEPTION
  • Constructor Details

    • DifficultyCommand

      public DifficultyCommand()
  • Method Details

    • register

      public static void register​(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
    • execute

      public static int execute​(ServerCommandSource source, Difficulty difficulty) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException