类 DifficultyCommand


  • public class DifficultyCommand
    extends Object
    Mappings:
    Namespace Name
    official xx
    intermediary net/minecraft/class_3036
    named net/minecraft/server/command/DifficultyCommand
    • 字段详细资料

      • FAILURE_EXCEPTION

        private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILURE_EXCEPTION
        Mappings:
        Namespace Name Mixin selector
        official a Lxx;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
        intermediary field_13602 Lnet/minecraft/class_3036;field_13602:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
        named FAILURE_EXCEPTION Lnet/minecraft/server/command/DifficultyCommand;FAILURE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • 构造器详细资料

      • DifficultyCommand

        public DifficultyCommand()
    • 方法详细资料

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
        Mappings:
        Namespace Name Mixin selector
        official a Lxx;a(Lcom/mojang/brigadier/CommandDispatcher;)V
        intermediary method_13169 Lnet/minecraft/class_3036;method_13169(Lcom/mojang/brigadier/CommandDispatcher;)V
        named register Lnet/minecraft/server/command/DifficultyCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
      • execute

        public static int execute​(ServerCommandSource source,
                                  Difficulty difficulty)
                           throws com.mojang.brigadier.exceptions.CommandSyntaxException
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Lxx;a(Ldg;Lard;)I
        intermediary method_13173 Lnet/minecraft/class_3036;method_13173(Lnet/minecraft/class_2168;Lnet/minecraft/class_1267;)I
        named execute Lnet/minecraft/server/command/DifficultyCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/world/Difficulty;)I