public class CommandEffect extends CommandBase
CommandBase.CoordinateArg
Constructor and Description |
---|
CommandEffect() |
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
|
int |
getRequiredPermissionLevel()
Return the required permission level for this command.
|
java.util.List<java.lang.String> |
getTabCompletions(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
BlockPos targetPos)
Get a list of options for when the user presses the TAB key
|
java.lang.String |
getUsage(ICommandSender sender)
Gets the usage string for the command.
|
boolean |
isUsernameIndex(java.lang.String[] args,
int index)
Return whether the specified command parameter index is a username parameter.
|
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()
public int getRequiredPermissionLevel()
getRequiredPermissionLevel
in class CommandBase
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
public java.util.List<java.lang.String> getTabCompletions(MinecraftServer server, ICommandSender sender, java.lang.String[] args, BlockPos targetPos)
getTabCompletions
in interface ICommand
getTabCompletions
in class CommandBase
server
- The server instancesender
- The ICommandSender to get tab completions forargs
- Any arguments that were present when TAB was pressedtargetPos
- The block that the player's mouse is over, null if the mouse is not over a blockpublic boolean isUsernameIndex(java.lang.String[] args, int index)
isUsernameIndex
in interface ICommand
isUsernameIndex
in class CommandBase
args
- The arguments of the command invocationindex
- The index