Class DefaultGameModeCommand

All Implemented Interfaces:
Comparable<Command>, Command

public class DefaultGameModeCommand extends GameModeCommand
Mappings:
Namespace Name
official y
intermediary net/minecraft/class_1088
named net/minecraft/server/command/DefaultGameModeCommand
  • Constructor Details

    • DefaultGameModeCommand

      public DefaultGameModeCommand()
  • Method Details

    • getCommandName

      public String getCommandName()
      Specified by:
      getCommandName in interface Command
      Overrides:
      getCommandName in class GameModeCommand
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c()Ljava/lang/String;
      intermediary method_3277 Lnet/minecraft/class_1007;method_3277()Ljava/lang/String;
      named getCommandName Lnet/minecraft/command/Command;getCommandName()Ljava/lang/String;
    • getUsageTranslationKey

      public String getUsageTranslationKey(CommandSource source)
      Specified by:
      getUsageTranslationKey in interface Command
      Overrides:
      getUsageTranslationKey in class GameModeCommand
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c(Lm;)Ljava/lang/String;
      intermediary method_3275 Lnet/minecraft/class_1007;method_3275(Lnet/minecraft/class_1061;)Ljava/lang/String;
      named getUsageTranslationKey Lnet/minecraft/command/Command;getUsageTranslationKey(Lnet/minecraft/command/CommandSource;)Ljava/lang/String;
    • execute

      public void execute(CommandSource source, String[] args) throws CommandException
      Specified by:
      execute in interface Command
      Overrides:
      execute in class GameModeCommand
      Throws:
      CommandException
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lm;[Ljava/lang/String;)V
      intermediary method_3279 Lnet/minecraft/class_1007;method_3279(Lnet/minecraft/class_1061;[Ljava/lang/String;)V
      named execute Lnet/minecraft/command/Command;execute(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;)V
    • method_3461

      protected void method_3461(LevelInfo.GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Ladp$a;)V
      intermediary method_3461 Lnet/minecraft/class_1088;method_3461(Lnet/minecraft/class_1156$class_1157;)V
      named method_3461 Lnet/minecraft/server/command/DefaultGameModeCommand;method_3461(Lnet/minecraft/world/level/LevelInfo$GameMode;)V