public class CommandTP extends CommandBase
CommandBase.CoordinateArg
Constructor and Description |
---|
CommandTP() |
Modifier and Type | Method and Description |
---|---|
void |
execute(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args) |
java.lang.String |
getName() |
int |
getRequiredPermissionLevel() |
java.util.List<java.lang.String> |
getTabCompletions(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
BlockPos targetPos) |
java.lang.String |
getUsage(ICommandSender sender) |
boolean |
isUsernameIndex(java.lang.String[] args,
int index) |
private static void |
teleportEntityToCoordinates(Entity teleportingEntity,
CommandBase.CoordinateArg argX,
CommandBase.CoordinateArg argY,
CommandBase.CoordinateArg argZ,
CommandBase.CoordinateArg argYaw,
CommandBase.CoordinateArg argPitch) |
buildString, 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, toSyntaxException
public java.lang.String getName()
public int getRequiredPermissionLevel()
getRequiredPermissionLevel
in class CommandBase
public java.lang.String getUsage(ICommandSender sender)
public void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
CommandException
private static void teleportEntityToCoordinates(Entity teleportingEntity, CommandBase.CoordinateArg argX, CommandBase.CoordinateArg argY, CommandBase.CoordinateArg argZ, CommandBase.CoordinateArg argYaw, CommandBase.CoordinateArg argPitch)
public java.util.List<java.lang.String> getTabCompletions(MinecraftServer server, ICommandSender sender, java.lang.String[] args, @Nullable BlockPos targetPos)
getTabCompletions
in interface ICommand
getTabCompletions
in class CommandBase
public boolean isUsernameIndex(java.lang.String[] args, int index)
isUsernameIndex
in interface ICommand
isUsernameIndex
in class CommandBase