Class GameRuleCommand

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

public class GameRuleCommand extends Object
Mappings:
Namespace Name
named net/minecraft/server/command/GameRuleCommand
intermediary net/minecraft/class_3065
official aoj
  • Constructor Details

    • GameRuleCommand

      public GameRuleCommand()
  • Method Details

    • register

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

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

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