Class DifficultyCommand


  • public class DifficultyCommand
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_ALREADY_DIFFICULT  
    • Field Detail

      • ERROR_ALREADY_DIFFICULT

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

      • DifficultyCommand

        public DifficultyCommand()
    • Method Detail

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198344_0_)
      • setDifficulty

        public static int setDifficulty​(CommandSource p_198345_0_,
                                        Difficulty p_198345_1_)
                                 throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException