public class CommandDefaultGameMode extends CommandGameMode
CommandBase.CoordinateArg
Constructor and Description |
---|
CommandDefaultGameMode() |
Modifier and Type | Method and Description |
---|---|
void |
execute(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args) |
java.lang.String |
getName() |
java.lang.String |
getUsage(ICommandSender sender) |
protected void |
setDefaultGameType(GameType gameType,
MinecraftServer server) |
getGameModeFromCommand, getRequiredPermissionLevel, getTabCompletions, isUsernameIndex
buildString, checkPermission, compareTo, convertArgToBlockState, convertArgToBlockStatePredicate, doesStringStartWith, entityToNBT, getAliases, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener, toSyntaxException
public java.lang.String getName()
getName
in interface ICommand
getName
in class CommandGameMode
public java.lang.String getUsage(ICommandSender sender)
getUsage
in interface ICommand
getUsage
in class CommandGameMode
public void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
execute
in interface ICommand
execute
in class CommandGameMode
CommandException
protected void setDefaultGameType(GameType gameType, MinecraftServer server)