类 GameRuleCommand


  • public class GameRuleCommand
    extends Object
    Mappings:
    Namespace Name
    official yh
    intermediary net/minecraft/class_3065
    named net/minecraft/server/command/GameRuleCommand
    • 构造器详细资料

      • GameRuleCommand

        public GameRuleCommand()
    • 方法详细资料

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
        Mappings:
        Namespace Name Mixin selector
        official a Lyh;a(Lcom/mojang/brigadier/CommandDispatcher;)V
        intermediary method_13392 Lnet/minecraft/class_3065;method_13392(Lcom/mojang/brigadier/CommandDispatcher;)V
        named register Lnet/minecraft/server/command/GameRuleCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
      • executeSet

        private static <T extends GameRules.Rule<T>> int executeSet​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
                                                                    GameRules.Key<T> key)
        Mappings:
        Namespace Name Mixin selector
        official b Lyh;b(Lcom/mojang/brigadier/context/CommandContext;Lbvn$e;)I
        intermediary method_13394 Lnet/minecraft/class_3065;method_13394(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_1928$class_4313;)I
        named executeSet Lnet/minecraft/server/command/GameRuleCommand;executeSet(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/world/GameRules$Key;)I
      • executeQuery

        private static <T extends GameRules.Rule<T>> int executeQuery​(ServerCommandSource source,
                                                                      GameRules.Key<T> key)
        Mappings:
        Namespace Name Mixin selector
        official b Lyh;b(Ldg;Lbvn$e;)I
        intermediary method_13397 Lnet/minecraft/class_3065;method_13397(Lnet/minecraft/class_2168;Lnet/minecraft/class_1928$class_4313;)I
        named executeQuery Lnet/minecraft/server/command/GameRuleCommand;executeQuery(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/world/GameRules$Key;)I