Package net.minecraft.server.command
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 ahintermediary net/minecraft/class_218named net/minecraft/server/command/GameModeCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.command.AbstractCommand
AbstractCommand.Coordinate -
Constructor Summary
Constructors Constructor Description GameModeCommand() -
Method Summary
Modifier and Type Method Description voidexecute(CommandSource source, String[] args)List<String>getAutoCompleteHints(CommandSource source, String[] args, BlockPos pos)StringgetCommandName()intgetPermissionLevel()StringgetUsageTranslationKey(CommandSource source)booleanisUsernameAtIndex(String[] args, int index)protected String[]method_870()protected LevelInfo.GameModemethod_871(CommandSource commandSource, String string)Methods inherited from class net.minecraft.command.AbstractCommand
compareTo, concat, concat, concat, getAliases, getAsPlayer, getBlock, getBlockPos, getCoordinate, getCoordinate, getEntities, getEntity, getEntity, getItem, getPlayer, isAccessible, method_5667, method_5675, method_5678, method_5679, method_5680, method_5681, method_5687, method_5688, method_5692, method_5693, parseBoolean, parseClampedDouble, parseClampedDouble, parseClampedInt, parseClampedInt, parseClampedLong, parseDouble, parseDouble, parseDouble, parseInt, parseLong, run, run, setCommandProvider
-
Constructor Details
-
GameModeCommand
public GameModeCommand()
-
-
Method Details
-
getCommandName
- Mappings:
Namespace Name Mixin selector official cLk;c()Ljava/lang/String;intermediary method_5889Lnet/minecraft/class_1606;method_5889()Ljava/lang/String;named getCommandNameLnet/minecraft/command/Command;getCommandName()Ljava/lang/String;
-
getPermissionLevel
public int getPermissionLevel()- Overrides:
getPermissionLevelin classAbstractCommand- Mappings:
Namespace Name Mixin selector official aLi;a()Iintermediary method_5657Lnet/minecraft/class_1545;method_5657()Inamed getPermissionLevelLnet/minecraft/command/AbstractCommand;getPermissionLevel()I
-
getUsageTranslationKey
- Mappings:
Namespace Name Mixin selector official cLk;c(Lm;)Ljava/lang/String;intermediary method_5890Lnet/minecraft/class_1606;method_5890(Lnet/minecraft/class_1659;)Ljava/lang/String;named getUsageTranslationKeyLnet/minecraft/command/Command;getUsageTranslationKey(Lnet/minecraft/command/CommandSource;)Ljava/lang/String;
-
execute
- Throws:
CommandException- Mappings:
Namespace Name Mixin selector official aLk;a(Lm;[Ljava/lang/String;)Vintermediary method_5885Lnet/minecraft/class_1606;method_5885(Lnet/minecraft/class_1659;[Ljava/lang/String;)Vnamed executeLnet/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 hLah;h(Lm;Ljava/lang/String;)Ladp$a;intermediary method_871Lnet/minecraft/class_218;method_871(Lnet/minecraft/class_1659;Ljava/lang/String;)Lnet/minecraft/class_102$class_103;named method_871Lnet/minecraft/server/command/GameModeCommand;method_871(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Lnet/minecraft/world/level/LevelInfo$GameMode;
-
getAutoCompleteHints
- Specified by:
getAutoCompleteHintsin interfaceCommand- Overrides:
getAutoCompleteHintsin classAbstractCommand- Mappings:
Namespace Name Mixin selector official aLk;a(Lm;[Ljava/lang/String;Lcj;)Ljava/util/List;intermediary method_5886Lnet/minecraft/class_1606;method_5886(Lnet/minecraft/class_1659;[Ljava/lang/String;Lnet/minecraft/class_1372;)Ljava/util/List;named getAutoCompleteHintsLnet/minecraft/command/Command;getAutoCompleteHints(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;
-
method_870
- Mappings:
Namespace Name Mixin selector official dLah;d()[Ljava/lang/String;intermediary method_870Lnet/minecraft/class_218;method_870()[Ljava/lang/String;named method_870Lnet/minecraft/server/command/GameModeCommand;method_870()[Ljava/lang/String;
-
isUsernameAtIndex
- Specified by:
isUsernameAtIndexin interfaceCommand- Overrides:
isUsernameAtIndexin classAbstractCommand- Mappings:
Namespace Name Mixin selector official bLk;b([Ljava/lang/String;I)Zintermediary method_5888Lnet/minecraft/class_1606;method_5888([Ljava/lang/String;I)Znamed isUsernameAtIndexLnet/minecraft/command/Command;isUsernameAtIndex([Ljava/lang/String;I)Z
-