Class GameModeCommand

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

public class GameModeCommand extends Object
Mappings:
Namespace Name
named net/minecraft/server/command/GameModeCommand
intermediary net/minecraft/class_3064
official apj
  • Field Details

    • PERMISSION_CHECK

      public static final PermissionCheck PERMISSION_CHECK
      Mappings:
      Namespace Name Mixin selector
      named PERMISSION_CHECK Lnet/minecraft/server/command/GameModeCommand;PERMISSION_CHECK:Lnet/minecraft/command/permission/PermissionCheck;
      intermediary field_63167 Lnet/minecraft/class_3064;field_63167:Lnet/minecraft/class_12090;
      official a Lapj;a:Lbbo;
  • Constructor Details

    • GameModeCommand

      public GameModeCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
      Mappings:
      Namespace Name Mixin selector
      named register Lnet/minecraft/server/command/GameModeCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
      intermediary method_13388 Lnet/minecraft/class_3064;method_13388(Lcom/mojang/brigadier/CommandDispatcher;)V
      official a Lapj;a(Lcom/mojang/brigadier/CommandDispatcher;)V
    • sendFeedback

      private static void sendFeedback(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      named sendFeedback Lnet/minecraft/server/command/GameModeCommand;sendFeedback(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/world/GameMode;)V
      intermediary method_13390 Lnet/minecraft/class_3064;method_13390(Lnet/minecraft/class_2168;Lnet/minecraft/class_3222;Lnet/minecraft/class_1934;)V
      official a Lapj;a(Lej;Laxm;Lduk;)V
    • execute

      private static int execute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      named execute Lnet/minecraft/server/command/GameModeCommand;execute(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/Collection;Lnet/minecraft/world/GameMode;)I
      intermediary method_13387 Lnet/minecraft/class_3064;method_13387(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/Collection;Lnet/minecraft/class_1934;)I
      official a Lapj;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/Collection;Lduk;)I
    • execute

      public static void execute(ServerPlayerEntity target, GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      named execute Lnet/minecraft/server/command/GameModeCommand;execute(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/world/GameMode;)V
      intermediary method_71688 Lnet/minecraft/class_3064;method_71688(Lnet/minecraft/class_3222;Lnet/minecraft/class_1934;)V
      official a Lapj;a(Laxm;Lduk;)V
    • execute

      private static boolean execute(ServerCommandSource source, ServerPlayerEntity target, GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      named execute Lnet/minecraft/server/command/GameModeCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/world/GameMode;)Z
      intermediary method_71689 Lnet/minecraft/class_3064;method_71689(Lnet/minecraft/class_2168;Lnet/minecraft/class_3222;Lnet/minecraft/class_1934;)Z
      official b Lapj;b(Lej;Laxm;Lduk;)Z