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 |
getCommandName() |
java.lang.String |
getCommandUsage(ICommandSender sender) |
protected void |
setDefaultGameType(WorldSettings.GameType gameType,
MinecraftServer server) |
getGameModeFromCommand, getRequiredPermissionLevel, getTabCompletionOptions, isUsernameIndex
buildString, checkPermission, compareTo, doesStringStartWith, entityToNBT, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandAliases, 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 getCommandName()
getCommandName
in interface ICommand
getCommandName
in class CommandGameMode
public java.lang.String getCommandUsage(ICommandSender sender)
getCommandUsage
in interface ICommand
getCommandUsage
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(WorldSettings.GameType gameType, MinecraftServer server)