public class CommandPublishLocalServer extends CommandBase
CommandBase.CoordinateArg
Constructor and Description |
---|
CommandPublishLocalServer() |
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.
|
buildString, checkPermission, compareTo, convertArgToBlockState, convertArgToBlockStatePredicate, doesStringStartWith, entityToNBT, getAliases, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getRequiredPermissionLevel, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, getTabCompletions, isUsernameIndex, 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()
public java.lang.String getUsage(ICommandSender sender)
sender
- The ICommandSender who is requesting usage detailspublic void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
server
- The server instancesender
- The sender who executed the commandargs
- The arguments that were passedCommandException