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)
Callback for when the command is executed
|
java.lang.String |
getName()
Gets the name of the command
|
java.lang.String |
getUsage(ICommandSender sender)
Gets the usage string for the command.
|
protected void |
setDefaultGameType(GameType gameType,
MinecraftServer server)
Set the default game type for the server.
|
getGameModeFromCommand, getRequiredPermissionLevel, getTabCompletions, isUsernameIndexbuildString, checkPermission, compareTo, convertArgToBlockState, convertArgToBlockStatePredicate, doesStringStartWith, entityToNBT, getAliases, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getPlayers, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener, toSyntaxExceptionpublic java.lang.String getName()
getName in interface ICommandgetName in class CommandGameModepublic java.lang.String getUsage(ICommandSender sender)
getUsage in interface ICommandgetUsage in class CommandGameModepublic void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
execute in interface ICommandexecute in class CommandGameModeCommandExceptionprotected void setDefaultGameType(GameType gameType, MinecraftServer server)