Class GameModeCommand

java.lang.Object
net.minecraft.command.AbstractCommand
net.minecraft.server.command.GameModeCommand
All Implemented Interfaces:
Comparable<Command>, Command
Direct Known Subclasses:
DefaultGameModeCommand

public class GameModeCommand
extends AbstractCommand
Mappings:
Namespace Name
official ah
intermediary net/minecraft/class_218
named net/minecraft/server/command/GameModeCommand
  • Constructor Details

    • GameModeCommand

      public GameModeCommand()
  • Method Details

    • getCommandName

      public String getCommandName()
      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;
    • getPermissionLevel

      public int getPermissionLevel()
      Overrides:
      getPermissionLevel in class AbstractCommand
      Mappings:
      Namespace Name Mixin selector
      official a Li;a()I
      intermediary method_5657 Lnet/minecraft/class_1545;method_5657()I
      named getPermissionLevel Lnet/minecraft/command/AbstractCommand;getPermissionLevel()I
    • getUsageTranslationKey

      public String getUsageTranslationKey​(CommandSource source)
      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
      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_871

      protected LevelInfo.GameMode method_871​(CommandSource commandSource, String string) throws InvalidNumberException
      Throws:
      InvalidNumberException
      Mappings:
      Namespace Name Mixin selector
      official h Lah;h(Lm;Ljava/lang/String;)Ladp$a;
      intermediary method_871 Lnet/minecraft/class_218;method_871(Lnet/minecraft/class_1659;Ljava/lang/String;)Lnet/minecraft/class_102$class_103;
      named method_871 Lnet/minecraft/server/command/GameModeCommand;method_871(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Lnet/minecraft/world/level/LevelInfo$GameMode;
    • getAutoCompleteHints

      public List<String> getAutoCompleteHints​(CommandSource source, String[] args, BlockPos pos)
      Specified by:
      getAutoCompleteHints in interface Command
      Overrides:
      getAutoCompleteHints in class AbstractCommand
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lm;[Ljava/lang/String;Lcj;)Ljava/util/List;
      intermediary method_5886 Lnet/minecraft/class_1606;method_5886(Lnet/minecraft/class_1659;[Ljava/lang/String;Lnet/minecraft/class_1372;)Ljava/util/List;
      named getAutoCompleteHints Lnet/minecraft/command/Command;getAutoCompleteHints(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;
    • method_870

      protected String[] method_870()
      Mappings:
      Namespace Name Mixin selector
      official d Lah;d()[Ljava/lang/String;
      intermediary method_870 Lnet/minecraft/class_218;method_870()[Ljava/lang/String;
      named method_870 Lnet/minecraft/server/command/GameModeCommand;method_870()[Ljava/lang/String;
    • isUsernameAtIndex

      public boolean isUsernameAtIndex​(String[] args, int index)
      Specified by:
      isUsernameAtIndex in interface Command
      Overrides:
      isUsernameAtIndex in class AbstractCommand
      Mappings:
      Namespace Name Mixin selector
      official b Lk;b([Ljava/lang/String;I)Z
      intermediary method_5888 Lnet/minecraft/class_1606;method_5888([Ljava/lang/String;I)Z
      named isUsernameAtIndex Lnet/minecraft/command/Command;isUsernameAtIndex([Ljava/lang/String;I)Z