Class DefaultGameModeCommand

All Implemented Interfaces:
Comparable<Command>, Command

public class DefaultGameModeCommand
extends GameModeCommand
Mappings:
Namespace Name
official y
intermediary net/minecraft/class_2003
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_5889 Lnet/minecraft/class_1606;method_5889()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_5890 Lnet/minecraft/class_1606;method_5890(Lnet/minecraft/class_1659;)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_5885 Lnet/minecraft/class_1606;method_5885(Lnet/minecraft/class_1659;[Ljava/lang/String;)V
      named execute Lnet/minecraft/command/Command;execute(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;)V
    • method_8142

      protected void method_8142​(LevelInfo.GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Ladp$a;)V
      intermediary method_8142 Lnet/minecraft/class_2003;method_8142(Lnet/minecraft/class_102$class_103;)V
      named method_8142 Lnet/minecraft/server/command/DefaultGameModeCommand;method_8142(Lnet/minecraft/world/level/LevelInfo$GameMode;)V