Class DifficultyCommand

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

public class DifficultyCommand extends Object
  • Field Details

    • ERROR_ALREADY_DIFFICULT

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

    • DifficultyCommand

      public DifficultyCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136939_)
    • setDifficulty

      public static int setDifficulty(CommandSourceStack p_136945_, Difficulty p_136946_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException